Java Character .isSupplementaryCodePoint (int codePoint)
Syntax
Character.isSupplementaryCodePoint(int codePoint) has the following syntax.
public static boolean isSupplementaryCodePoint(int codePoint)
Example
In the following code shows how to use Character.isSupplementaryCodePoint(int codePoint) method.
public class Main {
//from w w w .ja v a2s . c o m
public static void main(String[] args) {
int cp1 = 0x0065, cp2 = 0x0abcd;
boolean b1 = Character.isSupplementaryCodePoint(cp1);
boolean b2 = Character.isSupplementaryCodePoint(cp2);
System.out.println( b1 );
System.out.println( b2 );
}
}
The code above generates the following result.