Created
August 3, 2013 05:10
-
-
Save lu911/6145263 to your computer and use it in GitHub Desktop.
Application object
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
import scala.collection.mutable.ArrayBuffer | |
/* | |
object Main { | |
def main(args: Array[String]): Unit = { | |
} | |
} | |
*/ | |
object Main extends App{ | |
if (args.length > 0) | |
println("Hello, " + args(0)) | |
else | |
println("Hello") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment