java char number to int code example
Example 1: java strin to int
String myString = "1234";
int foo = Integer.parseInt(myString);
Example 2: java convert char to int
char something = '1';
int value = Integer.parseInt(something + "");
System.out.println(value); // prints 1