Java Character.isLetter(int codePoint)
Syntax
Character.isLetter(int codePoint) has the following syntax.
public static boolean isLetter(int codePoint)
Example
In the following code shows how to use Character.isLetter(int codePoint) method.
//from w w w.j av a2 s . co m
public class Main {
public static void main(String[] args) {
int cp1 = 0x0065, cp2 = 0x0066;
boolean b1 = Character.isLetter(cp1);
boolean b2 = Character.isLetter(cp2);
System.out.println("Code point cp1 is a letter==" + b1 );
System.out.println("Code point cp2 is a letter==" + b2);
}
}
The code above generates the following result.