Do not use operators like == or != to compare Strings, use String's equals() method is the correct way.

java exception