convert alphanumeric to numeric java code example Example: char to int int n = Character.getNumericValue(char);