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(java.lang.String prompt,
java.lang.Boolean defaultValue)
Displaysa a message and reads a boolean from the user input.
|
java.lang.String |
readLine()
Reads a line from the user input.
|
java.lang.String |
readLine(java.lang.String prompt)
Displays a message and prompts the user for input.
|
int read()
throws java.io.IOException
java.io.IOExceptionboolean readBoolean()
throws java.io.IOException
java.io.IOExceptionboolean readBoolean(java.lang.String prompt,
java.lang.Boolean defaultValue)
throws java.io.IOException
prompt - defaultValue - java.io.IOExceptionjava.lang.String readLine()
throws java.io.IOException
java.io.IOExceptionjava.lang.String readLine(java.lang.String prompt)
throws java.io.IOException
prompt - java.io.IOExceptionCopyright © 2018. All Rights Reserved.