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 1Output: 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 2Output: The first character is a space character: true The second character is a space character: true Next TopicJava-character-isspacechar-method |
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