public class FrequencyCount
extends Object
Compilation: javac FrequencyCount.java
Execution: java FrequencyCount < file.txt
Dependencies: StdIn.java Counter.java
Read in a sequence of words, separated by whitespace.
Compute the number of times each word appears, and print,
sorted by frequency.
% java FrequencyCount < mobydick.txt
the: 13527
of: 6374
and: 5857
a: 4457
to: 4388
in: 3773
that: 2666
his: 2404
I: 1742
with: 1615
...