Java Character.isAlphabetic(int codePoint)
Syntax
Character.isAlphabetic(int codePoint) has the following syntax.
public static boolean isAlphabetic(int codePoint)
Example
In the following code shows how to use Character.isAlphabetic(int codePoint) method.
//from w w w. j av a 2 s . c om
public class Main {
public static void main(String[] args) {
char cp1 = ' ', cp2 = 'A';
boolean b1 = Character.isAlphabetic(cp1);
boolean b2 = Character.isAlphabetic(cp2);
System.out.println(b1);
System.out.println(b2);
}
}
The code above generates the following result.