how to convert a number in char too int code example Example: char to int int n = Character.getNumericValue(char);