public interface InputReader
| Modifier and Type | Method and Description |
|---|---|
int |
read()
Reads a character from the user input.
|
boolean |
readBoolean()
Reads a boolean from the user input.
|
boolean |
readBoolean(String prompt,
Boolean defaultValue)
Displaysa a message and reads a boolean from the user input.
|
String |
readLine()
Reads a line from the user input.
|
String |
readLine(String prompt)
Displays a message and prompts the user for input.
|
int read()
throws IOException
IOExceptionboolean readBoolean()
throws IOException
IOExceptionboolean readBoolean(String prompt, Boolean defaultValue) throws IOException
prompt - defaultValue - IOExceptionString readLine() throws IOException
IOExceptionString readLine(String prompt) throws IOException
prompt - IOExceptionCopyright © 2013. All Rights Reserved.