diff -r a057dc4457fc -r 87b9e3e2c1a7 testing1/collatz.scala --- a/testing1/collatz.scala Tue Oct 29 11:11:44 2019 +0000 +++ b/testing1/collatz.scala Tue Oct 29 14:12:24 2019 +0000 @@ -1,8 +1,11 @@ // Part 1 about the 3n+1 conjecture //================================== +// generate jar with +// > scala -d collatz.jar collatz.scala -//object CW6a { // for purposes of generating a jar +object CW6a { + def collatz(n: Long): Long = if (n == 1) 0 else @@ -15,6 +18,7 @@ all.maxBy(_._1) } + /* some test cases val bnds = List(10, 100, 1000, 10000, 100000, 1000000) @@ -25,4 +29,8 @@ */ -//} + +} + + +