Package edu.princeton.cs.algs4
Class Average
- Object
-
- edu.princeton.cs.algs4.Average
-
public class Average extends Object
TheAverage
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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Reads in a sequence of real numbers from standard input and prints out their average to standard output.
-
-
-
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
-
-