The equalsIgnoreCase() Method is utilized to contrast a particular String to the String, avoiding case deliberations. Two strings are deemed equivalent ignoring cases if they are of the identical length and matching characters in the two strings are the identical ignoring cases.
Here is the syntax of this method:
public boolean equalsIgnoreCase(String anotherString)
Here is the detail of parameters −
This will produce the following result:
Returned Value = true Returned Value = true Returned Value = true
Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.