equals() equalsIgnoreCase() String Example

Comparing Strings with equals() equalsIgnoreCase() String. First and foremost important operation on strings is to compare whether two strings are same or not. There are three styles which the programmer should be well aware of when to use what. The styles are Using logical equals to (==) Using equals() and equalsIgnoreCase() Using lexicographical order, compareTo() …

equals() equalsIgnoreCase() String Example Read More »