maiolum.ui
Class Console

java.lang.Object
  extended bymaiolum.ui.Console

public class Console
extends java.lang.Object


Constructor Summary
Console()
           
 
Method Summary
static java.lang.String read()
          Read single character from System.in and return it as String;
static java.lang.String readln()
          Read line from System.in and return it as String.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Console

public Console()
Method Detail

read

public static java.lang.String read()
                             throws java.io.IOException
Read single character from System.in and return it as String;

Returns:
read character as String
Throws:
java.io.IOException - if I/O error occurs

readln

public static java.lang.String readln()
                               throws java.io.IOException
Read line from System.in and return it as String. Line does not contain line-terminating symbol.

Returns:
String line read from System.in or &null; if end-of-stream is reached.
Throws:
java.io.IOException - if I/O error occurs;