Hello World

//sampleStart
package org.kotlin.byexample        // 1

fun main(args: Array<String>) {     // 2
    println("Hello, World!")        // 3
}
//sampleEnd
  1. Kotlin code is usually defined in packages. If you don’t define one, the default package will be used
  2. The main entry point to a Kotlin application is a function called main
  3. println writes to standard output and is implicitly imported