KOTLIN: Comparison operators

Pataasin ang iyong marka sa homework at exams ngayon gamit ang 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


Kaugnay na mga set ng pag-aaral

06.01 The Origin and Influences of Urbanization

View Set

General embryology and organogenesis

View Set