Class Count


  • public class Count
    extends Object
    The Count class provides an Alphabet 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 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