Commit 6643078b authored by Dominik Charousset's avatar Dominik Charousset

updated signature of main() to allow program execution by calling 'java'

parent 17f2c8ff
......@@ -217,7 +217,7 @@ object MixedCase {
System.exit(1) // why doesn't exit return Nothing?
throw new RuntimeException("")
}
def main(args: Array[String]) = {
def main(args: Array[String]): Unit = {
if (args.size != 5) usage
val numRings = args(1).toInt
val ringSize = args(2).toInt
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment