0 votes
in JAVA by
How to convert char to int in java?

1 Answer

0 votes
by
How to convert char to int in java?

public class JavaExample{  

   public static void main(String args[]){  

        char ch = '10';

        int num = Integer.parseInt(String.valueOf(ch));

                

        System.out.println(num);

   }

}

Related questions

0 votes
asked Oct 20, 2020 in JAVA by sharadyadav1986
0 votes
0 votes
asked Sep 3, 2019 in JAVA by Robin
...