Inherited Method Summary |
IOConsole | getConsole()
Returns the console associated with this program.
|
IODialog | getDialog()
Returns the dialog used for user interaction.
|
BufferedReader | getReader()
Returns a BufferedReader whose input comes from the console.
|
String | getTitle()
Gets the title of this program.
|
PrintWriter | getWriter()
Returns a PrintWriter whose output is directed to the console.
|
void | pause(double milliseconds)
Delays the calling thread for the specified time, which is expressed in
milliseconds.
|
void | print(String value)
Displays the argument value on the console, leaving the cursor at the end of
the output.
|
void | println()
Advances the console cursor to the beginning of the next line.
|
void | println(String value)
Displays the argument value on the console and then advances the cursor
to the next line.
|
boolean | readBoolean()
Reads and returns a boolean value (true or false ).
|
boolean | readBoolean(String prompt)
Prompts the user to enter a boolean value.
|
boolean | readBoolean(String prompt, String trueLabel, String falseLabel)
Prompts the user to enter a boolean value, which is matched against the
labels provided.
|
double | readDouble()
Reads and returns a double-precision value from the user.
|
double | readDouble(String prompt)
Prompts the user to enter a double-precision number.
|
int | readInt()
Reads and returns an integer value from the user.
|
int | readInt(String prompt)
Prompts the user to enter an integer.
|
String | readLine()
Reads and returns a line of input from the console.
|
String | readLine(String prompt)
Prompts the user for a line of input.
|
void | setTitle(String title)
Sets the title of this program.
|