Kotlin - Operators and Expressions
Identify the error in this Kotlin code snippet:
val a = 10
val b = 20
if (a <> b) {
println("Not equal")
}val a = 10
val b = 20
if (a <> b) {
println("Not equal")
}<> is not valid in Kotlin for inequality.!= to check if two values are not equal.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions