# | Line 123 | Line 123 | public class CountedCompleter8Test exten | |
---|---|---|
123 | Integer[] a = new Integer[n]; | |
124 | for (int i = 0; i < n; i++) a[i] = i + 1; | |
125 | AtomicInteger ai = new AtomicInteger(0); | |
126 | < | action.accept(a, x -> ai.addAndGet(x)); |
126 | > | action.accept(a, ai::addAndGet); |
127 | assertEquals(n * (n + 1) / 2, ai.get()); | |
128 | } | |
129 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |