tyrcho
#1
A minor improvement of the template which would lead to one less level of identing : replace
object Player {
def main(args: Array[String]) {
//code within 2 indent levels
}
}
with
object Player extends App {
//code within only 1 indent level
}
3 Likes
Thanks @mdaviot. This should be available for the next release.
tyrcho
#3
Hi again, another minor improvement :
import math._
import scala.util._
import io.StdIn._
object Solution extends App {
val n = readInt
val b = readLine
}
This import io.StdIn._
removes the deprecation warnings about read*
methods in the “real” IDEs.
Thanks for pointing this out! I forward it to the tech team.