public class Average extends Object
Averageclass 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.
|Modifier and Type||Method and Description|
Reads in a sequence of real numbers from standard input and prints out their average to standard output.
public static void main(String args)
args- the command-line arguments