how to check if a character is a space in java code example Example: check if a char is a space java if (c == ' ')