be.cardon.utils
Class Keyboard

java.lang.Object
  extended by be.cardon.utils.Keyboard

public class Keyboard
extends java.lang.Object

Reads data from the standard input stream.


Constructor Summary
Keyboard()
           
 
Method Summary
static java.lang.String input()
          Reads a line from the standard input.
static java.lang.String input(java.lang.String question)
          Prints the question on the standard output and read a line from the standard input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Keyboard

public Keyboard()
Method Detail

input

public static java.lang.String input(java.lang.String question)
                              throws java.io.IOException
Prints the question on the standard output and read a line from the standard input.

Throws:
java.io.IOException

input

public static java.lang.String input()
                              throws java.io.IOException
Reads a line from the standard input.

Throws:
java.io.IOException