// Copyright (c) 1996, 1997, 1998 Bruno R. Preiss, P.Eng. // $Author: brpreiss $ // $Date: 1998/12/14 02:57:41 $ // $RCSfile: Application5.java,v $ // $Revision: 3.4 $ package Opus5; //{ import java.io.*; /** * Application program that illustrates the use of a hash table * to count number of occurrences of each word in the input text. * @see Algorithms#wordCounter * @author Bruno R. Preiss, P.Eng. * @version $Id: Application5.java,v 3.4 1998/12/14 02:57:41 brpreiss Exp $ **/ public class Application5 { //[ final String copyright = "@(#) Copyright (c) 1998 by Bruno R. Preiss, P.Eng."; //] /** * Invokes the word counting method. * @param args The command-line arguments. Ignored. **/ public static void main (String[] args) { try { Algorithms.wordCounter ( new InputStreamReader (Terminal.in), new PrintWriter (Terminal.out, true)); } catch (IOException exception) { Terminal.out.println (exception); } } }