object HelloWorld extends App { println("Hello, world!") }
It's also possible to simply write:
println("Hello World")
It's also possible to simply write:
and that would be the entire app, but the preferred way of doing things is to extend App