mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
10 lines
243 B
Java
10 lines
243 B
Java
// "Replace with reduce()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testBitwiseAndReplacingLongInitializer() {
|
|
long[] arr = new long[]{1, 2, 3, 4};
|
|
long acc = Arrays.stream(arr).reduce(-1l, (a, b) -> a & b);
|
|
}
|
|
} |