This code is showing error this is the same code as Pulkit bhaya wrote in NUll safety section
var f:String?= null
fun main(){
f = “Gautham”
val size:Int = f?.length!!
println(size)
}
please help what is the problem here?
This code is showing error this is the same code as Pulkit bhaya wrote in NUll safety section
var f:String?= null
fun main(){
f = “Gautham”
val size:Int = f?.length!!
println(size)
}
please help what is the problem here?