Class Tools
java.lang.Object
|
+--Tools
- public class Tools
- extends java.lang.Object
Method Summary |
static char |
getChar()
Reads a character from the keyboard. |
static int |
getInt()
Reads an integer from the keyboard. |
static long |
getLong()
Reads a long integer from the keyboard. |
static double |
getReal()
Reads a real number from the keyboard. |
static java.lang.String |
getString()
Reads a string from the keyboard. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getString
public static java.lang.String getString()
throws java.io.IOException
- Reads a string from the keyboard.
- Returns:
- the string
getInt
public static int getInt()
throws java.io.IOException
- Reads an integer from the keyboard.
- Returns:
- the int
getLong
public static long getLong()
throws java.io.IOException
- Reads a long integer from the keyboard.
- Returns:
- the long integer
getChar
public static char getChar()
throws java.io.IOException
- Reads a character from the keyboard.
- Returns:
- the character
getReal
public static double getReal()
throws java.io.IOException
- Reads a real number from the keyboard.
- Returns:
- the real number.