String.equalsIgnoreCase()

Description

Compares two Strings for equality. The comparison is not case-sensitive, meaning the String("hello") is equal to the String("HELLO").

Syntax

myString.equalsIgnoreCase(myString2)

Parameter Values

  • myString: variable of type String.
  • myString2: variable of type String.

Return Values

  • true: If myString equals myString2 (ignoring case).
  • false: Otherwise.

See Also

Please note: These are affiliate links. If you buy the components through these links, We may get a commission at no extra cost to you. We appreciate it.