Java Character isBmpCodePoint() MethodThe isBmpCodePoint(int codePoint() method of Character class generally determines whether the given(or specified) Unicode character lies in the range of Basic Multilingual Plane(BMP). These specified codePoints can be represented through a single char value. SyntaxParameterThe above method requires only one parameter: a.)The codePoint which is the Unicode character that needs to be tested. Return ValueThe isBmpCodePoint(int codePoint) method of Character class returns the Boolean value i.e. true, if the specified codePoint lies between the value of MIN_VALUE and MAX_VALUE. Otherwise, it returns false. Example 1Test it NowOutput: The value for the first char comes to be: true The value for the second char comes to be: true The value for the third char comes to be: true The value for the fourth char comes to be: true The value for the fifth char comes to be: true Example 2Test it NowOutput: The boolean value for the first codePoint is given as: true The boolean value for the second codePoint is given as: true The boolean value for the third codePoint is given as: false Example 3Test it NowOutput: The value for the first char comes to be: true The value for the second char comes to be: true The value for the third char comes to be: true The value for the fourth char comes to be: true The value for the fifth char comes to be: true
Next TopicJava Character
|