Java Character isISOControl() Method

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

Syntax

Parameters

codePoint: It is the codePoint which is the character that needs to be tested.

Return Value

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

Output:

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 2

Output:

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: