mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 11:18:16 +07:00
10 lines
236 B
Java
10 lines
236 B
Java
// "Replace with reduce()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testConjunctionBoxed() {
|
|
List<Boolean> booleans = new ArrayList<>();
|
|
Boolean acc = booleans.stream().reduce(true, (a, b) -> a && b);
|
|
}
|
|
} |