public class ShellUserTerminal extends Object implements UserTerminal
| Constructor and Description |
|---|
ShellUserTerminal() |
| Modifier and Type | Method and Description |
|---|---|
int |
ask(String question,
String[] options,
int default_answer)
Asks the user a question from the 'question' string.
|
void |
print(String str)
Outputs a string of information to the terminal.
|
void |
println(String str)
Outputs a string of information and a newline to the terminal.
|
public void print(String str)
UserTerminalprint in interface UserTerminalpublic void println(String str)
UserTerminalprintln in interface UserTerminalpublic int ask(String question, String[] options, int default_answer)
UserTerminalask in interface UserTerminalCopyright © 2016. All rights reserved.