diff options
Diffstat (limited to 'src/library/scala/Console.scala')
-rw-r--r-- | src/library/scala/Console.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/library/scala/Console.scala b/src/library/scala/Console.scala index 4dfc1d90ad..b7f68c3588 100644 --- a/src/library/scala/Console.scala +++ b/src/library/scala/Console.scala @@ -16,6 +16,7 @@ import java.io.{OutputStream, PrintStream} import java.text.MessageFormat import scala.util.Fluid +import Predef._ /** The <code>Console</code> object implements functionality for @@ -236,6 +237,10 @@ object Console { */ def readInt(): Int = readLine().toInt + /** Read an int value from the terminal. + */ + def readLong(): Long = readLine().toLong + /** Read a float value from the terminal. */ def readFloat(): Float = readLine().toFloat |