blob: f33b8c3b1659c310586f80ca892b24ffe1533f79 (
plain)
1
2
3
4
5
6
7
8
9
|
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
int[] N = {2, 5, 4, 4, 5, 5, 2};
int odd = Arrays.stream(N).reduce(0, (a, b) -> a ^ b);
System.out.println(odd);
}
}
|