Java isLetter() Method
The isLetter() method is used to determine whether the specified character is a letter.
Syntax
public static boolean isLetter(char ch)
Parameters
-
ch -- The character to be tested.
Return Value
If the character is a letter, it returns true; otherwise it returns false.
Example
public class Test {
public static void main(String args[]) {
System.out.println(Character.isLetter('c'));
System.out.println(Character.isLetter('5'));
}
}
The execution result of the above program is:
true
false
Java Character Class