|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--IO.RedmondMsgInBasic
Constructor Summary | |
RedmondMsgInBasic()
Creates a new instance of RedmondMsgInBasic |
Method Summary | |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
readString(java.lang.String message)
Use msg boxes to ask user for a valid string answer Strings are not validated here - accepts any string Given: message to display to the user Returns: the answer entered |
static double |
readValid(java.lang.String message,
double min,
double max)
Use msg boxes to ask user for a valid double Continues asking until a valid double is entered Does not handle totally bad input (e.g. |
static int |
readValid(java.lang.String message,
int min,
int max)
Use msg boxes to ask user for a valid integer Continues asking until a valid integer is entered Does not handle totally bad input (e.g. |
static double |
readValidDouble(java.lang.String message,
double min,
double max)
Use msg boxes to ask user for a valid double Continues asking until a valid double is entered Does not handle totally bad input (e.g. |
static int |
readValidInt(java.lang.String message,
int min,
int max)
Use msg boxes to ask user for a valid integer Continues asking until a valid integer is entered Does not handle totally bad input (e.g. |
static char |
readValidYN(java.lang.String message)
Use msg boxes to ask user for a valid Yes or No answer Continues asking until a valid answer is entered Accepts 'y', 'Y', 'n', 'N', "yes", "no" etc Given: message to display to the user Returns: the valid answer entered |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RedmondMsgInBasic()
Method Detail |
public static int readValidInt(java.lang.String message, int min, int max)
public static int readValid(java.lang.String message, int min, int max)
public static double readValidDouble(java.lang.String message, double min, double max)
public static double readValid(java.lang.String message, double min, double max)
public static char readValidYN(java.lang.String message)
public static java.lang.String readString(java.lang.String message)
public static void main(java.lang.String[] args)
args
- the command line arguments
little test driver
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |