kotlin question mark operator code example
Example 1: !! in kotlin
//The not-null assertion operator
val l = b!!.length
Example 2: elvis operator kotlin example
val l = b?.length ?: -1
//The not-null assertion operator
val l = b!!.length
val l = b?.length ?: -1