Skip to content

Instantly share code, notes, and snippets.

@YugandharVadlamudi
Created August 4, 2018 07:42
Show Gist options
  • Save YugandharVadlamudi/868bd5ddb5cdceb25c614846346a5bdc to your computer and use it in GitHub Desktop.
Save YugandharVadlamudi/868bd5ddb5cdceb25c614846346a5bdc to your computer and use it in GitHub Desktop.
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