get length of string kotlin and throw an null code example Example: !! in kotlin //The not-null assertion operator val l = b!!.length