Created
October 7, 2021 11:34
-
-
Save nbness2/8a7e7947f55374cbc8ccccfdbfb0f279 to your computer and use it in GitHub Desktop.
Kotlin Nullable String Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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