Opus5.Application5
Explanation
This application illustrates the use of a hash table
to count number of occurrences of each word in the input text.
It uses the wordCounter method given in
Program 8.23.
The source code for the main method is available
here.
Instructions
This is an interactive application.
Type your input in the white text area underneath the "screen" below.
Press Enter to cause the input in the text area
to be passed to the application.
Terminate your input by typing Control-D.
The input is a sequence of arbitrary words.
The application counts the number of times of each word appears in the input.
The output is a list of the words in the input
and the number of times each word was found.
Copyright © 1999 by
Bruno R. Preiss, P.Eng. All rights reserved.