com.su.utils
Class Input

java.lang.Object
  extended by com.su.utils.Input

public class Input
extends Object

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.

Since:
1.0
Version:
1.0
Author:
cstoss

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

Input

public Input()
Create a new Input object with the prompt indicator "> ".


Input

public Input(String pi)
Create a new Input object with the prompt indicator pi.

Parameters:
pi - the indication to the user that they are being prompted for entry input
Method Detail

getInput

public String getInput(String prompt)
Get the input from a user.

Parameters:
prompt - what to prompt the user with
Returns:
the input