|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.su.utils.Input
public class Input
The Input Object is used to get user input from a CLI. Simply create a new Input object then
use the getInput(String) method to prompt the user.
| Constructor Summary | |
|---|---|
Input()
Create a new Input object with the prompt indicator "> ". |
|
Input(String pi)
Create a new Input object with the prompt indicator pi. |
|
| Method Summary | |
|---|---|
String |
getInput(String prompt)
Get the input from a user. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Input()
public Input(String pi)
pi - the indication to the user that they are being prompted for entry input| Method Detail |
|---|
public String getInput(String prompt)
prompt - what to prompt the user with
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||