You need to read the
doc for the == operator.
What is it comparing when the operands are objects?
For compairing objects, use the equals() method.
Because of the way the JVM uses strings, sometimes two
String references will be == but not in general.