Difference between matches and equalsIgnoreCase or equals in string class
matches : Will check if the complete string entered is equal to the value present in the string object. equalsIgnoreCase : Ignoring the case, it checks if the string entered is equal to the value present in the string object. equals : Case sensitive and it checks if the string entered is equal to the value present in the string object. This is what I know about the methods, present in String class. Are there any other differences(Am I missing any valuable differences)? If there are no differences, then why cant matches method be removed from String class, since the functionality it puts forth