From the Java String class descriptions of the 'equals()' method at Java String Class:



Bottom line: Don't use something like (c =="a") to compare one String to another. Use c.equals("a")

...