Comparing Strings in JAVA


for last few weeks I am doing JAVA programming for Android, and as my background is mainly with ActionScript I wasn’t aware of JAVA nuances with String comparison, I thought that the equality operator will work i.e. a == “a”, but it isn’t. The String class (java.lang.String) offers comparison methods for that, the ones that I like are: equalsIgnoreCase and equals as they in result returns boolean value.

best regards