
// InputReader.java
// Andrew Davison, Nov. 2018, ad@fivedots.coe.psu.ac.th


/**
 * InputReader prompts the user, reads a line of text from standard input.
 * 
 * @author     Michael Kolling and David J. Barnes
 * @version    1.0
 */

import java.util.*;


public class InputReader
{
  private Scanner reader;


  public InputReader()
  {  reader = new Scanner(System.in);  }


  public String getInput() 
  // Read a line of text from standard input
  {
    System.out.print(">> "); // print prompt
    String inputLine = reader.nextLine();
    return inputLine.trim().toLowerCase();  // trim spaces, and make lowercase
  }  // end of getInput()

}  // end of InputReader class
