java tutorial - Java Strings compareToIgnoreCase() method - java programming - learn java - java basics - java for beginners
Learn java - java tutorial - java strings compare to ignore case - java examples - java programs
Description
Java - The compareToIgnoreCase () method — in Java, compares lexically two lines, ignoring the case of letters.
Syntax
The syntax of the method is:
Options
Detailed information about the parameters:
- str is a string for comparison.
Return value
- In Java, compareToIgnoreCase () returns a negative integer, zero, or a positive integer if the specified string is less, equal to or greater than the compared string, ignoring the case.