java CharSequence check if string is empty or spaces code example Example: check if a char is a space java if (c == ' ')