Kotlin - Data Types
Find the issue in this Kotlin code:
fun printValue(value: Any) {
println(value.length)
}
printValue("test")fun printValue(value: Any) {
println(value.length)
}
printValue("test")Any type does not have a length property.length, value must be cast to String or checked with is String.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions