Online Java Compiler By
JavaTpoint.com
public class JavaCharactertoCodePointExample1 { public static void main(String[] args) { // Create two char objects. char high = '\ud800'; char low = '\udd10'; // Converts the specified surrogate pair into its respective supplementary codePoint int result = Character.toCodePoint(high, low); // Print the result String str= "The result for the above charactetr is given as:"+result; System.out.println(str); } }
Output