Created
September 17, 2020 08:06
-
-
Save prateek54/df6ac98df2f07655c9553a0ffd6425a8 to your computer and use it in GitHub Desktop.
Null Safety a battle in Kotlin 4
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
if(avengers?.haveInfinityStones()){ | |
destroyThanos(avengers) | |
} | |
Or | |
if(avengers!!.haveInfinityStones()){ | |
destroyThanos(avengers) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment