Are you new to Java?
In Java, the == operator (and its relations like !=) is a
test for
identity, not for equality. It asks, "are these
objects the same?". It does not ask "do these objects have the same
value?"
For that, you need to use the equals() method of String.
[ March 02, 2007: Message edited by: Bear Bibeault ]