mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
10 lines
258 B
Plaintext
10 lines
258 B
Plaintext
// to compile: scalac HelloWorld.scala
|
|
// or scalac -d classes HelloWorld.scala
|
|
// to execute: scala HelloWorld
|
|
// or scala -cp classes HelloWorld
|
|
object HelloWorld {
|
|
def main(args: Array[String]) {
|
|
println("Hello, world!")
|
|
}
|
|
}
|