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.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable