What is the difference between equalsIgnoreCase and compareToIgnoreCase?

The return value of compareToIgnoreCase() is an integer that represents if one string is equal , greater than or less than the other one. But equalsIgnoreCase() returns one boolean value representing if both strings are equal or not.

Sizin İçin Seçtik  How do you get rid of a letter in a string Java?

Leave a Reply

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