A small compile error

Hey guys, I have this line of code in my program, but its giving me an error.

here is the code:

if (!(currentChar == " "))

and here is the error:

WordReader.java:21: operator == cannot be applied to char,java.lang.String

if (!(currentChar == " "))

WordReader is the name,

currentChar is a char variable

thanks !

[367 byte] By [mrsnoddya] at [2007-9-28 18:39:56]
# 1
If it is a char use single quotes like:if (!(currentChar == ' '))
swatdbaa at 2007-7-12 16:43:14 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Better use the equals method.
nnv14vva at 2007-7-12 16:43:14 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...