number in character to number in integer code example Example: char to int int n = Character.getNumericValue(char);