SyntaxFix
Write A Post
Hire A Developer
Questions
Since char is a primitive type, you can just write c == ' '. You only need to call equals() for reference types like String or Character.
char
c == ' '
equals()
String
Character