January 2018
Intermediate to advanced
434 pages
14h 1m
English
Now we are ready to run our first program using the command line. First, we will create a simple application that displays Hello World! and then compile it:
fun main(args: Array<String>) { println("Hello, World!") }
$ kotlinc hello.kt -include-runtime -d hello.jar
$ java -jar hello.jar
Read now
Unlock full access