Commit d0cc76cc authored by Jim Newton's avatar Jim Newton

update

parent 6b2db31b
......@@ -22,11 +22,11 @@
package lecture
object Greeting {
def hello() = {
def hello():Unit = {
println("hello world ")
}
def main(argv:Array[String]) = {
def main(argv:Array[String]):Unit = {
}
}
......@@ -50,7 +50,7 @@ object Recursion {
}
def main(argv:Array[String]):Unit = {
val longList = List.tabulate(5673)(n => 0)
val longList = List.tabulate(12)(n => 0)
println(s"sum = ${sumIntegersBySimpleRecursion(longList)}")
}
}
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