Created
August 18, 2014 09:48
-
-
Save 544/2ef5473828e0f61d3c6a to your computer and use it in GitHub Desktop.
Scalaで手っ取り早くHelloWorld ref: http://qiita.com/544/items/2a8f4263a96cb11c46db
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[masato] $ scala HelloWorldApp.scala Hoge | |
Hello Hoge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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