public static String readWord()
Reads and
returns one space-delimited word from standard input.
public static boolean readBoolean()
Reads
and returns a boolean value from standard input. Returns false if an exception
occurs during the read.
public static char readChar()
Reads and
returns a character from standard input. Returns MIN_VALUE if an exception
occurs during the read.
public static int readInt()
Reads and
returns an integer value from standard input. Returns MIN_VALUE if an exception
occurs during the read.
public static long readLong()
Reads and
returns a long integer value from standard input. Returns MIN_VALUE if an
exception occurs during the read.
public static float readFloat()
Reads and
returns a float value from standard input. Returns NaN if an exception occurs
during the read.
public static double readDouble()
Reads and
returns a double value from standard input. Returns NaN if an exception occurs
during the read.
public static int getErrorCount()
Returns
the number of errors recorded since the Keyboard class was loaded or since the
last error count reset.
public static void resetErrorCount(int
count)
Resets the current error count to zero.
public static boolean
getPrintErrors()
Returns a boolean indicating whether input errors
are currently printed to standard output.
public static void setPrintErrors(boolean
flag)
Sets the boolean indicating whether input errors are to be
printed to standard input.