KOTLIN: Comparison operators

Ace your homework & exams now with Quizwiz!

Comparison operators

== // equal != // not equal > // larger than < // smaller than >= // larger than or equal <= // smaller than or equal

//Also string interpolation: Can also do calc in {} in print/println: println("is5greater3 ${5>3}"

is5greater3 true

val isEqual = 5==3 println("isEqual" is isEqual) //OR String interpolation val isEqual = 5==3 println("isEqual is $Equal")

isEqual is false


Related study sets

06.01 The Origin and Influences of Urbanization

View Set

General embryology and organogenesis

View Set