System.out.println(Character.isDigit('w')); // false System.out.println(Character.isDigit('9')); // true