mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 18:58:31 +07:00
10 lines
228 B
Java
10 lines
228 B
Java
// "Replace with reduce()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testBitwiseAndHighestBit() {
|
|
int[] arr = {0x80000000, 0xffffffff};
|
|
int acc = Arrays.stream(arr).reduce(-1, (a, b) -> a & b);
|
|
}
|
|
} |