Created
September 8, 2018 00:49
-
-
Save gorrotowi/4bf2d2797a6b500b2b9f456e0a331fd6 to your computer and use it in GitHub Desktop.
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 name:String? = null | |
var length:Int | |
if(name != null){ | |
length = name.length | |
} else{ | |
length = -1 | |
} | |
print(length) // -1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment