mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-06 17:56:55 +07:00
GitOrigin-RevId: c4db6507c258e5611f6d47b9373a0c2531802345
10 lines
259 B
Java
10 lines
259 B
Java
// "Collapse loop with stream 'reduce()'" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testConjunctionBoxed() {
|
|
List<Boolean> booleans = new ArrayList<>();
|
|
Boolean acc = booleans.stream().reduce(true, (a, b) -> a && b);
|
|
}
|
|
} |