Hello, world!

Report a typo

Create an anonymous object that implements the Runnable interface.

Let this object display the message "Hello, world!" in the console.

Write a program in Kotlin
fun main() {
val runnable = // make tour code here
}

runnable.run()
}
___

Create a free account to access the full topic