Skip to content

Instantly share code, notes, and snippets.

@cassiozen
Created November 29, 2018 00:34
Show Gist options
  • Save cassiozen/7a41bfa21259b92ed21fa158a16f18b8 to your computer and use it in GitHub Desktop.
Save cassiozen/7a41bfa21259b92ed21fa158a16f18b8 to your computer and use it in GitHub Desktop.
val a = "Kotlin"
val b: String? = null
println(a?.length) // 6
println(b?.length) // null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment