Java Character isISOControl() Method6 Nov 2024 | 2 min read The isISOControl(int codePoint) method of Character class generally determines whether the referenced character is an ISO control character or not. A character can be consider as ISO control character if the given character's code lies in the range of '\u000' through '\u001F' or in the range of '\u007F' through '\u009F'. SyntaxParameterscodePoint: It is the codePoint which is the character that needs to be tested. Return ValueThe isISOControl(int codePoint) method returns a boolean value i.e. true, if the given(or specified) character is an ISO control character. Otherwise, the method returns false Example 1Output: The first codepoint '28' is an ISO Control: true The second codepoint '13480' is an ISO Control: false The third codepoint '13542' is an ISO Control: false Example 2Output: Enter the first input:@ The character @ is not an ISO control character: Enter the second input:A The character A is not an ISO control character: |
The isWhitespace(char ch) method of Character class determines whether the given character(Unicode code point) is a whitespace character or not. A character in Java can be considered as a whitespace character if one of the following criteria is satisfied: The character is a Unicode space character (either a...
7 min read
The hashCode() method of Character class generally returns the hash code for the given character. The result of the given method is similar to the result of invoking the charValue() method. Syntax public int hashCode() Parameter N.A. Return Value The hashCode() method of Character class returns the hash code for the given...
4 min read
This Method has 2 types of syntax. Java Character codePointCount(char[]a, int offset, int count) Method The codePointCount(char[]a, int offset, int count) method is used to return the number of Unicode code points in the sub array of the char array. The offset argument is the index of the...
4 min read
The isDigit(int codePoint) method of Character class generally determines whether the given character is a digit or not. Generally, a character is considered as a digit if its general category given by getType(codePoint), is DECIMAL_DIGIT_NUMBER. Syntax public static boolean isDigit(int codePoint) Parameter The above method requires only one parameter: a.)The codePoint...
6 min read
This Method has 3 types of syntax. Java Character codePointAt(char[] a, int index) method The codePointAt() method of Character class is used to return the code point at the given index of char array. If at a particular index, the char value in the char array is in...
6 min read
The isLetter(char ch) method of Character class determines whether the given(or specified) character is a letter or not. A character is considered to be a letter if the general category type provided by the Character.getType(ch) is one of the following: UPPERCASE_LETTER. LOWERCASE_LETTER. TITLECASE_LETTER. MODIFIER_LETTER. OTHER_LETTER Syntax public static boolean isLetter(char ch) Parameter ch: It is the...
7 min read
The isSpace(char ch)method of Character class determines whether the given(or specified) character is ISO-LATIN-1 white space. The given method returns true for the following five characters: '\t' U+0009 HORIZONTAL TABULATION '\n' U+000A NEW LINE '\f' U+000C FORM FEED '\r' U+000D CARRIAGE RETURN ' '...
2 min read
The isIdentifierIgnorable(int codePoint) method of Character class generally determines whether the specified character can be considered as an ignorable character in Java or a Unicode identifier. The following characters are considered as ignorable characters in Java or Unicode identifier: ISO control characters which do not have whitespace. All the...
4 min read
The getName(int codePoint) method returns the Unicode name of the specified character or null if the codePoint is unassigned. If the Unicode Data file does not assign the specified character a name, the returned name is same as the result of the expression. Character.UnicodeBlock.of(codePoint).toString().replace('-'), ' ...
2 min read
The isSpaceChar(char ch) method of Character class determines whether the given(or specified) character is a Unicode space character. The given(or specified) character is considered to be a space character if the character is specified as a space character by the Unicode Standard. The above method returns true...
4 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