Created
August 4, 2018 07:42
-
-
Save YugandharVadlamudi/868bd5ddb5cdceb25c614846346a5bdc to your computer and use it in GitHub Desktop.
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>) { | |
// here there is not Datatype deceleration | |
var check = "Hello" | |
var number = 1 | |
println("the value of check ${check} \n ${number}") | |
// if infered type is done then we can not change it's datatype | |
// number="String" //Error | |
} | |
###Output### | |
the value of check Hello | |
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment