char myDigit= '1'; // converting int myConvertedDigit= Character.getNumericValue(c);
char something = '1'; int value = Integer.parseInt(something + ""); System.out.println(value); // prints 1
int a = ch -'0';