Character.isLowSurrogate(char ch) has the following syntax.
public static boolean isLowSurrogate(char ch)
In the following code shows how to use Character.isLowSurrogate(char ch) method.
public class Main { /* w w w .ja v a2 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.