Java Character toCodePoint() MethodThe toCodePoint(char high, char low) method of character class generally converts the specified surrogate pair into its supplementary codePoint value. The above method does not validate the given surrogate pair. The caller must need to validate it by using isSurrogatePair if necessary. SyntaxParameterThe above method requires two parameters: a.)The high surrogate codePoint. b.)The low surrogate codePoint. Return ValueThe toCodePoint(char high, char low) method returns the supplementary codePoint from the given surrogate pair. Example 1Output: The result for the above charactetr is given as:65808 Example 2Output: The result for the above character is given as:324896 The result for the above character is given as:-624864 Next TopicJava-character-tolowercase-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India