Use Scala Console.in/out instead of Java System.in/out.