Hello, world!/mykhal/Scala

object HelloWorld {
  def main(args: Array[String]) : Unit = {
    println("Hello, world!")
  }
}

nebo

object HelloWorld extends App {
  println("Hello, world!")
}

nebo

println("Hello, world!")