average abstract method

double average()

Returns the arithmetic mean of values in the stream.

Example

final avg = IntStream.range(1, 5).average(); // 2.5

Implementation

double average();