how to compare a character to a white soace? code example Example: check if a char is a space java if (c == ' ')