Example usage for java.util.stream IntStream summaryStatistics

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

Introduction

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

Prototype

IntSummaryStatistics summaryStatistics();

Source Link

Document

Returns an IntSummaryStatistics describing various summary data about the elements of this stream.

Usage

From source file:Main.java

public static void main(String[] args) {
    IntStream i = IntStream.of(6, 5, 7, 1, 2, 3, 3);
    IntSummaryStatistics s = i.summaryStatistics();
    System.out.println(s);/*from ww  w. j  a v a 2s  .c om*/
}