Which method is used to compare two strings in knowing the case?

equalsIgnoreCase() : The String. equalsIgnoreCase() method compares two strings irrespective of the case (lower or upper) of the string. This method returns true if the argument is not null and the contents of both the Strings are same ignoring case, else false.

Sizin İçin Seçtik  Is contain case sensitive?

Leave a Reply

Your email address will not be published. Required fields are marked *