Kotlin Compare Strings equalsIn Kotlin, to compare 2 strings and verify if they are equal we use built in function:
the function compareTo() is case sensitive.
Example of Strings comparison in Kotlin
Example of Strings comparison case sensitive in Kotlin
In this page (written and validated by A. Gawali) you learned about Kotlin Compare Strings equals . What's Next? If you are interested in completing Kotlin tutorial, your next topic will be learning about: Kotlin Find String in another String.