Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created November 11, 2018 09:24
Show Gist options
  • Save ozcanzaferayan/64f2c92b1ad947b5547ca99005e3f188 to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/64f2c92b1ad947b5547ca99005e3f188 to your computer and use it in GitHub Desktop.
Kotlin Nedir makalesinde null olabilen bir değişkene null ataması
// ? operatör null olabilen bir değişken oluşturmayı sağlıyor
var b: String? = "abc"
b = null // Atamada bir problem yok
print(b) // Terminal çıktısı: null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment