Last active
October 18, 2019 07:13
-
-
Save mirokolodii/fa3b3e9b6f4c3afd96fd4d8d5bfeb081 to your computer and use it in GitHub Desktop.
Switch to Kotlin #2.2
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
val someStr1: String = "" // same as in Java, i.e initialized with empty string | |
val someStr2: String // warning: no default value assigned. Should be initialized | |
// with a non-null value before its first use | |
val someStr3: String = null // error: can't be null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment