Java Character.isLowSurrogate(char ch)

Syntax

Character.isLowSurrogate(char ch) has the following syntax.

public static boolean isLowSurrogate(char ch)

Example

In the following code shows how to use Character.isLowSurrogate(char ch) method.


public class Main {
//  ww  w .  jav  a 2 s  .  co  m
   public static void main(String[] args) {
      char ch1 = '\udc28', ch2 = 'a';

      boolean b1 = Character.isLowSurrogate(ch1);
      boolean b2 = Character.isLowSurrogate(ch2);

      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