mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-06-01 01:50:37 +07:00
13 lines
244 B
Java
13 lines
244 B
Java
// "Replace with reduce()" "true"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public void testBitwiseAndReplacingInitializer() {
|
|
int[] arr = new int[]{1, 2, 3, 4};
|
|
int acc = -1;
|
|
for <caret> (int i: arr) {
|
|
acc &= i;
|
|
}
|
|
}
|
|
} |