You are viewing a single comment's thread. Return to all comments →
Issue is with the readInt method.I get the following when running the same program locally, using the the -deprecation tag:
/home/lcampos/Development/learn-scala/Solution.scala:7: warning: method readInt in trait DeprecatedPredef is deprecated (since 2.11.0): use the method in `scala.io.StdIn` println(f(readInt))
Ok, so the last line of code should be:
println(f(scala.io.StdIn.readInt))
Seems like cookies are disabled on this browser, please enable them to open this website
Array Of N Elements
You are viewing a single comment's thread. Return to all comments →
Issue is with the readInt method.I get the following when running the same program locally, using the the -deprecation tag:
Ok, so the last line of code should be: