The equals() method is case-sensitive , meaning that the string “HELLO” is considered to be different from the string “hello”. The == operator does not work reliably with strings. Use == to compare primitive values such as int and char.
Read moreIs equal ignore case?
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 .
Read more