Class InputReader

java.lang.Object
  extended by InputReader

public class InputReader
extends java.lang.Object

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 (2016.02.29)
Author:
Michael Kölling and David J. Barnes

Constructor Summary
InputReader()
          Create a new InputReader that reads text from the text terminal.
 
Method Summary
 java.util.HashSet<java.lang.String> getInput()
          Read a line of text from standard input (the text terminal), and return it as a set of words.
 
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<java.lang.String> 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