## Class InputReader

    java.lang.Object
      |
      +--InputReader

public class InputReader
extends java.lang.Object

Class InputReader reads typed text input from the standard text terminal. The text typed by a user is then chopped into words, and a set of words is provided.

Version:
  1.0 (21.Jan.2002)
Author:
  Michael Kolling and David J. Barnes

Constructor Summary
`InputReader()` Create a new InputReader that reads text from the text terminal.

Method Summary
`java.util.HashSet` | `getInput()` Read a line of text from standard input (the text terminal), and return it as a set of words.
`java.lang.String` | `readInputLine()` Read one line of input and return it as a String.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### InputReader

    public InputReader()

  Create a new InputReader that reads text from the text terminal.

Method Detail

### getInput

    public java.util.HashSet getInput()

  Read a line of text from standard input (the text terminal), and return it as a set of words.

  Returns:
    A set of Strings, where each String is one of the words typed by the user

### readInputLine

    public java.lang.String readInputLine()

  Read one line of input and return it as a String.

  Returns:
    A String representing the input, or an empty String if an error occurs.