Character.toCodePoint(char high, char low) has the following syntax.
public static int toCodePoint(char high, char low)
In the following code shows how to use Character.toCodePoint(char high, char low) method.
public class Main { //w ww .jav a2s. c o m public static void main(String[] args) { char ch1 = '\ud800', ch2 = '\udc00'; int cp = Character.toCodePoint(ch1, ch2); String str = "Supplementary code point value is " + cp; System.out.println(str); } }
The code above generates the following result.