Character.isDigit(char ch) returns a boolean that tells whether the character represents a base-10 digit. public class MainClass { public static void main(String[] argv) { System.out.println(Character.isDigit('1')); } }
true