dalexander
02/22/2017, 9:49 PMval obj: Any = "asdf"
when(obj) {
is Int -> println("Int!")
is Double -> println("Double!")
is String -> { println("String!") } // you can add braces if you have a longer statement
}
groostav
02/22/2017, 10:31 PM