public class Count extends Object
Countclass provides an
Alphabetclient for reading in a piece of text and computing the frequency of occurrence of each character over a given alphabet.
For additional documentation, see Section 5.5 of Algorithms, 4th Edition by Robert Sedgewick and Kevin Wayne.
|Modifier and Type||Method and Description|
Reads in text from standard input; calculates the frequency of occurrence of each character over the alphabet specified as a commmand-line argument; and prints the frequencies to standard output.
public static void main(String args)
args- the command-line arguments