char to integer a equals to 1 code example Example: char to int int n = Character.getNumericValue(char);