java.lang.Character.isSurrogatePair(char high, char low) java.lang.Character.isSupplementaryCodePoint(int codePoint) java.lang.Character.isTitleCase(char ch) java.lang.Character.isSurrogatePair(char high, char low) package com.codingdict; import java.lang.*; public class CharacterDemo { public static void main(String[] args) { // create 2 char primitives ch1, ch2 char ch1, ch2; // assign values to ch1, ch2 ch1 = '\ud800'; ch2 = '\udc00'; // create a boolean primitive b boolean b; // check if ch1, ch2 is a surrogate pair and assign result to b b = Character.isSurrogatePair(ch1, ch2); String str = "ch1, ch2 is a valid Unicode surrogate pair is " + b; // print b value System.out.println( str ); } } java.lang.Character.isSupplementaryCodePoint(int codePoint) java.lang.Character.isTitleCase(char ch)