In Kotlin, == is the default way to compare two objects : it compares their values by calling equals under the hood. Thus, if equals is overridden in your class, you can safely compare its instances using ==. For reference comparison, you can use the === operator, which works exactly the same as == in Java.
Read moreHow do you ignore a case with strings?
Java String equalsIgnoreCase() Method The equalsIgnoreCase() method compares two strings, ignoring lower case and upper case differences. This method returns true if the strings are equal, and false if not. Tip: Use the compareToIgnoreCase() method to compare two strings lexicographically, ignoring case differences.
Read moreHow do I compare char Kotlin?
How to compare two strings in Kotlin
Read moreHow do I use char in Kotlin?
Kotlin character is represented by the type Char . For example, ‘D’, ‘F’, ‘9’ , ‘5’ etc.
Read more