equalsIgnoreCase() method
This method will allow you to compare the two strings based on the content but ignores the case of the string. This method will return false if the characters of the string do not match else, it will return true.
Method implementation-
Syntax-
Example-
Output-