Character.isBmpCodePoint(): This method is available in java.lang.Character class of Java.
Syntax:
boolean java.lang.Character.isBmpCodePoint(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 Basic Multilingual Plane (BMP). Such code points can be represented using a single char.
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_VALUE and MAX_VALUE inclusive; false otherwise.
Exceptions: NA
Approach
Java
public class CharacterisBmpCodePoint {public static void main(String[] args) {int codePoint = 24;System.out.println(Character.isBmpCodePoint(codePoint));}}
Output:
true
No comments:
Post a Comment