Last active
June 24, 2018 15:03
-
-
Save YugandharVadlamudi/8591d0e8947ac732e0a0e5afc55b285f to your computer and use it in GitHub Desktop.
Var variable declaration in Kotlin
This file contains hidden or 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
fun main(args: Array<String>) { | |
//var variable is decleared | |
var name = "name Check" | |
println(name) | |
//changed the value of the variable | |
name="hell" | |
println("name is $name" + " check ") | |
} | |
###output### | |
name Check | |
name is hell check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment