Skip to content

Instantly share code, notes, and snippets.

@544
Created August 18, 2014 09:48
Show Gist options
  • Save 544/2ef5473828e0f61d3c6a to your computer and use it in GitHub Desktop.
Save 544/2ef5473828e0f61d3c6a to your computer and use it in GitHub Desktop.
Scalaで手っ取り早くHelloWorld ref: http://qiita.com/544/items/2a8f4263a96cb11c46db
[masato] $ scala HelloWorldApp.scala Hoge
Hello Hoge
object HelloWorldApp extends App {
val name:String = if (args.length > 0) args(0) else "World";
println ("Hello %s".format(name))
}
HelloWorldApp.main(args)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment