Class Average


  • public class Average
    extends Object
    The Average class provides a client for reading in a sequence of real numbers and printing out their average.

    For additional documentation, see Section 1.1 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 a sequence of real numbers from standard input and prints out their average to standard output.
        Parameters:
        args - the command-line arguments