Answers for "typeof kotlin"

1

typeof kotlin

val number = 5
if(number is Int) {
   println("number is of type Int")
}

println("${number::class.simpleName}")    // "Int"
println("${number::class.qualifiedName}") // "kotlin.Int"
Posted by: Guest on April-21-2021

Browse Popular Code Answers by Language