Example usage for java.util.stream DoubleStream summaryStatistics

List of usage examples for java.util.stream DoubleStream summaryStatistics

Introduction

In this page you can find the example usage for java.util.stream DoubleStream summaryStatistics.

Prototype

DoubleSummaryStatistics summaryStatistics();

Source Link

Document

Returns a DoubleSummaryStatistics describing various summary data about the elements of this stream.

Usage

From source file:Main.java

public static void main(String[] args) {
    DoubleStream b = DoubleStream.of(1.1, 2.2, 3.3, 4.4, 5.5);
    DoubleSummaryStatistics d = b.summaryStatistics();
    System.out.println(d);/*from  w w  w . j a va 2s. c  o  m*/

}