String can not be compare like that.
String has a method name compareTo.
this is the example:
String s1;
String s2;
if(s1.compareTo(s2)==0) {
// this means the value of s1 is equal to value s2
}
sometimes you also have to use trim before you compare Strings.
such as:
s1.trim();
s2.trim();