java tutorial - Java Strings equalsIgnoreCase() method - java programming - learn java - java basics - java for beginners
Learn java - java tutorial - Java - The equalsIgnoreCase() method - java examples - java programs
Description
- Java Strings equalsIgnoreCase() method— compares this string to another string, ignoring the case.
- Two lines are considered equal if they have the same length and the corresponding characters for the two strings are equal, ignoring the case of letters.
Syntax
The syntax of the method is:
Options
Detailed information about the parameters:
- anotherString is a string for comparison with the specified string.
Return value
- In Java, equalsIgnoreCase () returns true if the argument is not null and the lines are equal, ignoring the case of letters; otherwise false.