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