The java.lang.Character.isSupplementaryCodePoint(int codePoint) is an inbuilt method in java that determines whether the specified character (Unicode code point) is in the supplementary character range.
public static boolean isSupplementaryCodePoint(int codePoint)
Parameters: The codePoint of integer type refers to the character (Unicode code point) that is to be tested.
Return Value: This method returns true if the specified code point is between MIN_SUPPLEMENTARY_CODE_POINT and MAX_CODE_POINT inclusive, false otherwise.
Below programs illustrate the Character.isSupplementaryCodePoint() method:
c1 represents a supplementary code point is true c2 represents a supplementary code point is true
c1 represents a supplementary code point is true c2 represents a supplementary code point is false
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready.