compare 2 strings kotlin
string1 == string2 //returns true if they are equal and false if they are not
compare 2 strings kotlin
string1 == string2 //returns true if they are equal and false if they are not
kotlin compare strings
val hello = "Hello"
val world = "World"
// equals() returns true or false
val equals = hello.equals(world)
// compareTo() will return 0 if true
// Any non zero value is false
val compare = hello.compareTo(world)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us