Compares two strings ignoring case considerations.

Two strings are considered equal ignoring case if they are of the same length, and corresponding characters in the two strings are equal ignoring case.

Parameters:

str1
str2

The strings to be compared.

Returns:

true if the strings are equal, ignoring case; false otherwise.

Tip:

You may call this function in a method-like style:

str1.equalsIgnoreCase(str2)