Package edu.princeton.cs.algs4
Class Count
- Object
-
- edu.princeton.cs.algs4.Count
-
public class Count extends Object
TheCount
class provides anAlphabet
client 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.
- Author:
- Robert Sedgewick, Kevin Wayne
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Reads in text from standard input; calculates the frequency of occurrence of each character over the alphabet specified as a command-line argument; and prints the frequencies to standard output.
-
-
-
Method Detail
-
main
public static void main(String[] args)
Reads in text from standard input; calculates the frequency of occurrence of each character over the alphabet specified as a command-line argument; and prints the frequencies to standard output.- Parameters:
args
- the command-line arguments
-
-