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)
UserTerminal
print
in interface UserTerminal
public void println(String str)
UserTerminal
println
in interface UserTerminal
public int ask(String question, String[] options, int default_answer)
UserTerminal
ask
in interface UserTerminal
Copyright © 2015. All rights reserved.