Answers for "kotlin get type"

0

kotlin get type

val obj: Double = 5.0

println(obj.javaClass.name)                 // double
println(obj.javaClass.kotlin)               // class kotlin.Double
println(obj.javaClass.kotlin.qualifiedName) // kotlin.Double
Posted by: Guest on March-13-2021

Browse Popular Code Answers by Language