| Supertypes | |
|---|---|
| Self type |
Reads a boolean value from an entire line of the default input. Has a fairly liberal interpretation of the input.
| Returns | the boolean value read, or false if it couldn't be converted to a boolean |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads a byte value from an entire line of the default input.
| Returns | the Byte that was read |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads a char value from an entire line of the default input.
| Returns | the Char that was read |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads a double value from an entire line of the default input.
| Returns | the Double that was read. |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads a float value from an entire line of the default input.
| Returns | the Float that was read. |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads an int value from an entire line of the default input.
| Returns | the Int that was read |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Print and flush 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.
| Value parameters |
|
|---|---|
| Returns | the string read from the default input |
| Inherited from | StdIn (hidden) |
Read a full line from the default input. Returns null if the end of the input stream has been reached.
| Returns | the string read from the terminal or null if the end of stream was reached. |
|---|---|
| Inherited from | StdIn (hidden) |
Reads an long value from an entire line of the default input.
| Returns | the Long that was read |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
Reads a short value from an entire line of the default input.
| Returns | the short that was read |
|---|---|
| Throws |
|
| Inherited from | StdIn (hidden) |
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.
| Value parameters |
|
|---|---|
| Returns | a list of all extracted values. |
| Throws |
|
| Inherited from | StdIn (hidden) |
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.
| Value parameters |
|
|---|---|
| Returns | The first value that was extracted from the input |
| Inherited from | StdIn (hidden) |
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.
| Value parameters |
|
|---|---|
| Returns | A scala.Tuple2 containing the first two values extracted |
| Inherited from | StdIn (hidden) |
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.
| Value parameters |
|
|---|---|
| Returns | A scala.Tuple3 containing the first three values extracted |
| Inherited from | StdIn (hidden) |
© 2002-2022 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://scala-lang.org/api/3.2.0/scala/io/StdIn$.html