Character: isDigit(char charValue)
/* * Output: true */ public class MainClass { public static void main(String args[]) { System.out.println(Character.isDigit('8')); } }