WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Java - isDigit() Method


The method determines whether the specified char value is a digit.

Syntex

boolean isDigit(char ch)

Parameters

what is mean of ch?
ch − Primitive character type.

Example

public class Test {

   public static void main(String args[]) {
      System.out.println(Character.isDigit('c'));
      System.out.println(Character.isDigit('3'));
        System.out.println(Character.isDigit('4'));
   }
}

Output
false
true
true

Run example »