Answers for "kotlin check type"

0

kotlin check type

// You can use typeof do check data type

fun main() {
    val name = "Kotlin for me"
    println("${name::class.simpleName}")    // "String"

}
Posted by: Guest on April-07-2022

Browse Popular Code Answers by Language