edu.indiana.util
Class ConsoleInput
java.lang.Object
edu.indiana.util.ConsoleInput
public abstract class ConsoleInput
- extends java.lang.Object
Facilitates reading user input from the console.
Field Summary |
protected static java.io.BufferedReader |
reader
|
Method Summary |
static double |
readDouble()
|
static double |
readDouble(double defaultValue)
|
static double |
readDouble(java.lang.String prompt)
|
static double |
readDouble(java.lang.String prompt,
double defaultValue)
|
static int |
readInt()
|
static int |
readInt(int defaultValue)
|
static int |
readInt(java.lang.String prompt)
|
static int |
readInt(java.lang.String prompt,
int defaultValue)
|
static java.lang.String |
readLine()
|
static java.lang.String |
readLine(java.lang.String prompt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected static java.io.BufferedReader reader
ConsoleInput
public ConsoleInput()
readInt
public static int readInt()
readInt
public static int readInt(int defaultValue)
readInt
public static int readInt(java.lang.String prompt)
readInt
public static int readInt(java.lang.String prompt,
int defaultValue)
readDouble
public static double readDouble()
readDouble
public static double readDouble(double defaultValue)
readDouble
public static double readDouble(java.lang.String prompt)
readDouble
public static double readDouble(java.lang.String prompt,
double defaultValue)
readLine
public static java.lang.String readLine(java.lang.String prompt)
readLine
public static java.lang.String readLine()