|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cli.ReadKb
public class ReadKb
Another collection of methods for getting keyboard input from The Java Way text
Field Summary | |
---|---|
(package private) static java.util.Scanner |
scanner
|
Constructor Summary | |
---|---|
ReadKb()
|
Method Summary | |
---|---|
static double |
getDouble()
Reads a Double from the keyboard |
static double |
getDouble(java.lang.String prompt_)
Reads a Double from the keyboard with prompt |
static double |
getDouble(java.lang.String prompt_,
double min_,
double max_)
Reads a Double from the keyboard with prompt in range min-max inclusive |
static int |
getInt()
Reads an Integer from the keyboard |
static int |
getInt(java.lang.String prompt_)
Reads a Integer from the keyboard with prompt |
static int |
getInt(java.lang.String prompt_,
int min_,
int max_)
Reads a Integer from the keyboard with prompt in range min-max inclusive |
static java.lang.String |
getString()
Reads a String from the keyboard |
static java.lang.String |
getString(java.lang.String prompt_)
Reads a String from the keyboard with prompt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.util.Scanner scanner
Constructor Detail |
---|
public ReadKb()
Method Detail |
---|
public static double getDouble()
public static double getDouble(java.lang.String prompt_)
prompt_
-
public static double getDouble(java.lang.String prompt_, double min_, double max_)
prompt_
- min_
- max_
-
public static int getInt()
public static int getInt(java.lang.String prompt_)
prompt_
-
public static int getInt(java.lang.String prompt_, int min_, int max_)
prompt_
- max_
- min_
-
public static java.lang.String getString()
public static java.lang.String getString(java.lang.String prompt_)
prompt_
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |