mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-19 03:25:44 +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!")
|
||
|
}
|
||
|
}
|