edu.toronto.cs.util.userprompt
Class UserPrompt

java.lang.Object
  extended by edu.toronto.cs.util.userprompt.UserPrompt

public class UserPrompt
extends java.lang.Object

This is a class to be used when the user needs to provide some input given a number of choices.


Method Summary
static java.lang.Object pickOne(java.util.Collection things)
          Given a Collection of Objects it will display all of them in a list and then prompt the user to pick one by entering an appropriate number.
static java.util.Set pickSome(java.util.Collection things)
           
static void waitPrompt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pickOne

public static java.lang.Object pickOne(java.util.Collection things)
Given a Collection of Objects it will display all of them in a list and then prompt the user to pick one by entering an appropriate number.

Returns:
-- the Object that was picked.

waitPrompt

public static void waitPrompt()

pickSome

public static java.util.Set pickSome(java.util.Collection things)