Skip to content

Instantly share code, notes, and snippets.

@nbness2
Created October 7, 2021 11:34
Show Gist options
  • Save nbness2/8a7e7947f55374cbc8ccccfdbfb0f279 to your computer and use it in GitHub Desktop.
Save nbness2/8a7e7947f55374cbc8ccccfdbfb0f279 to your computer and use it in GitHub Desktop.
Kotlin Nullable String Example
var nullableString: String?
nullableString = "not null"
nullableString = null
println(nullableString) // prints null as expected, wow!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment