Computer Applications

Describe the purpose and write the syntax of equalsIgnoreCase() function.

Java String Handling

23 Likes

Answer

It ignores the case of the characters and checks if the contents of two strings are same or not.

Syntax:


boolean <variable-name> = <string-variable>.equalsIgnoreCase(<string>);

Answered By

13 Likes


Related Questions