// "Collapse loop with stream 'reduce()'" "true-preview" import java.util.*; public class Main { public void testBitwiseAndHighestBit() { int[] arr = {0x80000000, 0xffffffff}; int acc = Arrays.stream(arr).reduce(-1, (a, b) -> a & b); } }