!! in kotlin
snippet in kotlin

!! in kotlin

user9580

//The not-null assertion operator
val l = b!!.length

elvis operator kotlin example

user4160

val l = b?.length ?: -1