com.massimo.utils
Class InputHelper

java.lang.Object
  extended by com.massimo.utils.InputHelper

public final class InputHelper
extends Object

Helper class for user input.


Method Summary
static void interrupt()
          Attempt to close System.in, in case waiting for input.
static String readInput(String prompt)
          Prompt and wait indefinitely for input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

interrupt

public static void interrupt()
Attempt to close System.in, in case waiting for input.


readInput

public static String readInput(String prompt)
Prompt and wait indefinitely for input. Read input and return it.

Parameters:
prompt -
Returns:
String