The method determines whether the specified char value is a digit. It has the following syntax :
Example
public class Test { public static void main(String args[]) { System.out.println(Character.isDigit('c')); System.out.println(Character.isDigit('5')); } }
Output
false true