| iterating on an object of class [I | |
| forEach 0 | |
| forEach 1 | |
| forEach 2 | |
| forEach 3 | |
| reduce 0 1 | |
| reduce 1 2 | |
| reduce 3 3 | |
| left sum 6 | |
| reduceRight 3 2 | |
| reduceRight 5 1 | |
| reduceRight 6 0 | |
| right sum 6 | |
| squared 0,1,4,9 | |
| iterating on an object of class java.util.ArrayList | |
| forEach 1 | |
| forEach 3 | |
| forEach 5 | |
| forEach 7 | |
| reduce 1 3 | |
| reduce 4 5 | |
| reduce 9 7 | |
| left sum 16 | |
| reduceRight 7 5 | |
| reduceRight 12 3 | |
| reduceRight 15 1 | |
| right sum 16 | |
| squared 1,9,25,49 | |
| iterating on 2,4,6,8 | |
| forEach 2 | |
| forEach 4 | |
| forEach 6 | |
| forEach 8 | |
| reduce 2 4 | |
| reduce 6 6 | |
| reduce 12 8 | |
| left sum 20 | |
| reduceRight 8 6 | |
| reduceRight 14 4 | |
| reduceRight 18 2 | |
| right sum 20 | |
| squared 4,16,36,64 |