Hello, world!/mykhal/Scala
Vzhled
object HelloWorld {
def main(args: Array[String]) : Unit = {
println("Hello, world!")
}
}
nebo
object HelloWorld extends App {
println("Hello, world!")
}
nebo
println("Hello, world!")
object HelloWorld {
def main(args: Array[String]) : Unit = {
println("Hello, world!")
}
}
nebo
object HelloWorld extends App {
println("Hello, world!")
}
nebo
println("Hello, world!")