Java Data Type Tutorial - Java Character .isUnicodeIdentifierPart (int codePoint)








Syntax

Character.isUnicodeIdentifierPart(int codePoint) has the following syntax.

public static boolean isUnicodeIdentifierPart(int codePoint)

Example

In the following code shows how to use Character.isUnicodeIdentifierPart(int codePoint) method.

public class Main {
//w  ww . j a  va 2  s  .c  o  m
   public static void main(String[] args) {
     int cp1 = 0x053e; // represents ARMENIAN CAPITAL LETTER CA
     int cp2 = 0x0040; // represents @

     boolean b1 = Character.isUnicodeIdentifierPart(cp1);
     boolean b2 = Character.isUnicodeIdentifierPart(cp2);

     System.out.println( b1 );
     System.out.println( b2 );
   }
}

The code above generates the following result.