Kotlin: Output


Example: Hello World in Kotlin

In this example, a package-level function main is declared which returns Unit and takes an Array of strings as a parameter. Note that semicolons are optional.


	/**
	 * Hello, world! program
	 */

	fun main(args: Array) {
		println("Hello, world!")
	}
	

Output:

  Hello, world!