public class Average extends java.lang.Object
For additional documentation, see Section 1.1 of Algorithms, 4th Edition, by Robert Sedgewick and Kevin Wayne.
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Prints average of given numbers.
|
public static void main(java.lang.String[] args)
% java Average 10.0 5.0 6.0 3.0 7.0 32.0 <Ctrl-d> Average is 10.5Note <Ctrl-d> signifies the end of file on Unix. On windows use <Ctrl-z>.