TUTORIALS POINT
isDigit()
Description:
The method determines whether the specified char value is a digit.
Syntax:
boolean isDigit(char ch)
Parameters:
Here is the detail of parameters:
ch -- Primitive character type
Return Value:
This method Returns true if passed character is really a digit.
Example:
public class Test{
public static void main(String args[]){
System.out.println(Character.isDigit('c'));
System.out.println(Character.isDigit('5'));
}
}
This produces the following result:
false
true
isWhitespace()
Description:
The method determines whether the specified char value is a white space, which includes space, tab or new
line.
Syntax:
boolean isWhitespace(char ch)