We have used the method boolean equals(Object anObject) of the class String several times already and have pointed out that it compares this String value with other objects. This method returns true only when the passed-in object is String with the same value.
The method boolean equalsIgnoreCase(String anotherString) does the same but also ignores case, so the strings AbC and ABC are considered equal.