Skip to content

Instantly share code, notes, and snippets.

@mirokolodii
Last active October 18, 2019 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirokolodii/fa3b3e9b6f4c3afd96fd4d8d5bfeb081 to your computer and use it in GitHub Desktop.
Save mirokolodii/fa3b3e9b6f4c3afd96fd4d8d5bfeb081 to your computer and use it in GitHub Desktop.
Switch to Kotlin #2.2
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