Reads a boolean value from an entire line of the default input.
Reads a boolean value from an entire line of the default input. Has a fairly liberal interpretation of the input.
the boolean value read, or false if it couldn't be converted to a boolean
if the end of the input stream has been reached.
Reads a byte value from an entire line of the default input.
Reads a byte value from an entire line of the default input.
the Byte that was read
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to a Byte
Reads a char value from an entire line of the default input.
Reads a char value from an entire line of the default input.
the Char that was read
if the end of the input stream has been reached.
java.lang.StringIndexOutOfBoundsExceptionif the line read from default input was empty
Reads a double value from an entire line of the default input.
Reads a double value from an entire line of the default input.
the Double that was read.
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to a Float
Reads a float value from an entire line of the default input.
Reads a float value from an entire line of the default input.
the Float that was read.
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to a Float
Reads an int value from an entire line of the default input.
Reads an int value from an entire line of the default input.
the Int that was read
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to an Int
Print formatted text to the default output and read a full line from the default input.
Print formatted text to the default output and read a full line from the default input.
Returns null
if the end of the input stream has been reached.
the format of the text to print out, as in printf
.
the parameters used to instantiate the format, as in printf
.
the string read from the default input
Read a full line from the default input.
Read a full line from the default input. Returns null
if the end of the
input stream has been reached.
the string read from the terminal or null if the end of stream was reached.
Reads an long value from an entire line of the default input.
Reads an long value from an entire line of the default input.
the Long that was read
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to a Long
Reads a short value from an entire line of the default input.
Reads a short value from an entire line of the default input.
the short that was read
if the end of the input stream has been reached.
java.lang.NumberFormatExceptionif the value couldn't be converted to a Short
Reads in some structured input (from the default input), specified by a format specifier.
Reads in some structured input (from the default input), specified by
a format specifier. See class java.text.MessageFormat
for details of
the format specification.
the format of the input.
a list of all extracted values.
if the end of the input stream has been reached.
Reads in some structured input (from the default input), specified by a format specifier, returning only the first value extracted, according to the format specification.
Reads in some structured input (from the default input), specified by a format specifier, returning only the first value extracted, according to the format specification.
format string, as accepted by readf
.
The first value that was extracted from the input
Reads in some structured input (from the default input), specified by a format specifier, returning only the first two values extracted, according to the format specification.
Reads in some structured input (from the default input), specified by a format specifier, returning only the first two values extracted, according to the format specification.
format string, as accepted by readf
.
A scala.Tuple2 containing the first two values extracted
Reads in some structured input (from the default input), specified by a format specifier, returning only the first three values extracted, according to the format specification.
Reads in some structured input (from the default input), specified by a format specifier, returning only the first three values extracted, according to the format specification.
format string, as accepted by readf
.
A scala.Tuple3 containing the first three values extracted