BeginnerBasics

Hello World

The simplest Kotlin program.

kotlin
fun main() {
    println("Hello, Kotlin")
}
Output
Hello, Kotlin

Explanation

println() prints text and moves to the next line. Every Kotlin program needs a main function as its entry point.