MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / main

Method main

streams/NumericStreamInfo.java:9–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

7
8public class NumericStreamInfo {
9 public static void main(String[] args) {
10 System.out.println(rands().average().getAsDouble());
11 System.out.println(rands().max().getAsInt());
12 System.out.println(rands().min().getAsInt());
13 System.out.println(rands().sum());
14 System.out.println(rands().summaryStatistics());
15 }
16}
17/* Output:
18507.94

Callers

nothing calls this directly

Calls 5

randsMethod · 0.80
sumMethod · 0.80
maxMethod · 0.65
getAsDoubleMethod · 0.45
getAsIntMethod · 0.45

Tested by

no test coverage detected