Use the equals() method to compare Strings, not the == operator.