char something = '1'; int value = Integer.parseInt(something + ""); System.out.println(value); // prints 1