Skip to content

Instantly share code, notes, and snippets.

@soudmaijer
Created April 8, 2021 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soudmaijer/8084e4256c0b55b0efb2fdad89e57599 to your computer and use it in GitHub Desktop.
Save soudmaijer/8084e4256c0b55b0efb2fdad89e57599 to your computer and use it in GitHub Desktop.
fun main(args: Array<String>) {
val name = "Kotlin"
name = "John Doe"
println("Hello, $name!")
var answer = 21
answer = "42"
println("The answer to everything: $answer!")
val groceries = listOf("Bread", "Butter", "Milk")
groceries.add("Cola")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment