Skip to content

Instantly share code, notes, and snippets.

@goindwalia
Created May 18, 2017 06:59
Show Gist options
  • Save goindwalia/1b5c476ee487e88f2eba3322d6b23b3a to your computer and use it in GitHub Desktop.
Save goindwalia/1b5c476ee487e88f2eba3322d6b23b3a to your computer and use it in GitHub Desktop.
/* Kotlin Code*/
/* Simple Hello Word Example*/
//optional package header
package hello
//package level function, which return Unit and takes an array of string as parameter
fun main(args: Array < String > ) {
val scope = “world”
println(“Hello, $scope!”) //semicolons are optional, have you noticed that? :)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment