Example usage for java.util.stream LongStream summaryStatistics

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

Introduction

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

Prototype

LongSummaryStatistics summaryStatistics();

Source Link

Document

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

Usage

From source file:Main.java

public static void main(String[] args) {
    LongStream b = LongStream.of(1L, 2L, 3L);

    LongSummaryStatistics l = b.summaryStatistics();

    System.out.println(l);//from   ww w .  j  a va2  s .c om
}