Copyright © tutorialspoint.com
The method determines whether the specified char value is a digit.
boolean isDigit(char ch) |
Here is the detail of parameters:
Primitive character type
Returns true if passed character is really a digit.
public class Test{ public static void main(String args[]){ System.out.println( Character.isDigit('c')); System.out.println( Character.isDigit('5')); } } |
This produces following result:
false true |
Copyright © tutorialspoint.com