IntSummaryStatistics () { IntSummaryStatistics stat = new IntSummaryStatistics(); for (Supplier<Integer> sup : Arrays.<Supplier<Integer>>asList(() -> 1, /*between*/ () /*supply 2*/ -> 2, () -> 3)) { int i = sup.get(); stat.accept(i); } return stat; }