how to convert char to digit code example Example: char to int int n = Character.getNumericValue(char);