Javatpoint Logo
Javatpoint Logo

Java Character isBmpCodePoint() Method

The 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.

Syntax

Parameter

The above method requires only one parameter:

a.)The codePoint which is the Unicode character that needs to be tested.

Return Value

The 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 1

Test it Now

Output:

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 2

Test it Now

Output:

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 3

Test it Now

Output:

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



Please Share

facebook twitter google plus pinterest