01. Hello World
Every Kotlin program starts with the main function. It is the entry point the runtime calls first.
fun main() {
println("Hello, World!")
}
println writes its argument to standard output, followed by a newline. (Use print if you don’t want the trailing newline.)
Running it:
$ kotlin run
Hello, World!
| Index | Next → |