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 {
// www.jav a2s .  co 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.





















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