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