Java Character isBmpCodePoint() Method6 Nov 2024 | 3 min read 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. 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 1Output: 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 2Output: 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 3Output: 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-isdefined-method |
Java Character digit(char ch, int radix) Method The digit(char ch, int radix) method of character class returns the numeric value of the character. If the radix is not in the range MIN_RADIX<=radix<=MAX_RADIX or if the value of ch is not a valid digit in a particular...
5 min read
The isValidCodePoint(int codePoint) method of Character class determines whether the given(or specified) character is a valid Unicode code point or not. Syntax public static boolean isValidCodePoint(int codePoint) Parameter The above method requires only one parameter: a.) The codePoint which is the character that needs to be tested. Return Value The isValidCodePoint(int codePoint) method...
4 min read
The reverseBytes(char ch) method of Character class returns the values obtained by reversing the bytes in a particular order for a given value. Syntax public static char reverseBytes(char ch) Parameter ch: It is the character that needs to be tested. Return Value The reverseBytes(char ch)method returns the value which is obtained by...
3 min read
The equals(Object obj) method of character class compares the object with the specified object. The result is true if and only if the argument is not null and the Character object has the same char value as represented by the object. Syntax public boolean equals(Object obj) Parameter The above method...
2 min read
The isDefined(char ch) method of Character class generally determines whether the character is defined in the Unicode or not. A character is defined in Unicode if and only if any of the two conditions are satisfied(or true): The character must have an entry made in the UnicodeData file. The...
4 min read
The isLowerCase(char ch) method of Character class determines whether the given(or specified) character is a lowercase character or not. A character is considered to be a lowercase character if the general category given by Character.getTyper(char ch) is a LOWERCASE_LETTER or it has some contributory properties. Syntax public static boolean...
6 min read
The getNumericValue() method of character class returns the int value of the specified character. If the character does not have any int value, -1 is returned. If the character has a numeric value that cannot be represented as a non-negative integer, -2 is returned. Syntax public static int...
2 min read
The forDigit(int digit, int radix) method of character class determines the character representation for a specific digit in the specified radix. If the value of the digit is not a valid digit in the specified radix or if the value of the radix is not a...
3 min read
The isLetterOrDigit(char ch) method of character class determines whether the given(or specified) character is a letter or digit or not. A character is considered to be a letter or digit if the Character.isLetter(char ch) or the Character.isDigit(char ch) method true for the given character. Note: The above method...
9 min read
The compare(char x, char y) method of Character class is used to compare two char values numerically. The final value returned is similar to what would be returned by: Character.valueoOf(x).compareTo(Character.valueOf(y)) Syntax public static intcompare(char x, char y) Parameter The above method requires two parameters: char x which is the first character to...
2 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India