Java Character isSpace() MethodThe 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:
SyntaxParametersch: It is the character that needs to be tested. Return ValueThe isSpace(char ch)method returns a Boolean value, i.e., true if the given(or specified) character is ISO-LATIN-1 white space. Otherwise, the method returns false. Example 1Test it NowOutput: The first character is a space character: true The second character is a space character: true The third character is a space character: true Example 2Test it NowOutput: The first character is a space character: true The second character is a space character: true
Next TopicJava Character
|