Character.highSurrogate(int codePoint) has the following syntax.
public static char highSurrogate(int codePoint)
In the following code shows how to use Character.highSurrogate(int codePoint) method.
public class Main { public static void main(String[] args) { int cp1 = 0x008f, cp2 = 0x0123; System.out.println( Character.highSurrogate(cp1) ); System.out.println( Character.highSurrogate(cp2) ); } }
The code above generates the following result.