Do not use the == operator to compare Strings operators. These operators actually test references, and since multiple String objects can represent the same String , this is liable to give the wrong answer. Instead, use the String.
Do not use the == operator to compare Strings operators. These operators actually test references, and since multiple String objects can represent the same String , this is liable to give the wrong answer. Instead, use the String.