KOTLIN: Comparison operators

Réussis tes devoirs et examens dès maintenant avec 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


Ensembles d'études connexes

06.01 The Origin and Influences of Urbanization

View Set

General embryology and organogenesis

View Set