Character.isSupplementaryCodePoint(): This method is available in java.lang.Character class of Java.
Syntax:
boolean java.lang.Character.isSupplementaryCodePoint(int codePoint)
This method takes one argument of type int as its parameter. This method determines whether the specified character (Unicode code point)is in the supplementary character range.
Parameters: One parameter is required for this method.
codePoint: the character (Unicode code point) to be tested.
Returns: true if the specified code point is between MIN_SUPPLEMENTARY_CODE_POINT and MAX_CODE_POINT inclusive; false otherwise.
Exceptions: NA
Approach
Java
public class CharacterisSupplementaryCodePoint {public static void main(String[] args) {int codePoint = '@';System.out.println(Character.isSupplementaryCodePoint(codePoint));}}
Output:
false
No comments:
Post a Comment