I’m currently doing an online course, however it doesn’t seem to enjoy this method: Character.isWhiteSpace(c)
What other methods are there that can answer the below question?
Assume that c is a char variable has been declared and already given a value. Write an expression whose value is true if and only if x is what is called a whitespace character (that is a space or a tab or a newline– none of which result in ink being printed on paper).
if you don’t want to/can’t use libraries
note that
\ris a carriage return it’s part of the windows\r\ncombination (and used commonly in network protocols)