IntSummaryStatistics () { IntSummaryStatistics stat = new IntSummaryStatistics(); long limit = 500; OUTER: for (int x = 0; x < 100; x++) { long limitInner = x / 2; INNER: for (int y = 0; y < x; y++) { long limit1 = 10; int bound = y + 100; for (int i = y; i < bound; i++) { if (limit1-- == 0) break; if (limitInner-- == 0) break INNER; if (limit-- == 0) break OUTER; stat.accept(i); } } } return stat; }