I see a strange issue where eclipse is not dentifying my lambda arguments
public static void main(String[] args) {
int[] array = {23,43,56,97,32};
int sum1 = Arrays.asList(array).stream().reduce(0, (total, e) -> total + e).intValue();
}
I get total and e cannot be resolved to a variable.
I see examples where 'total' and 'e' are used as arguments without declaring.
However,in my case - it refuses to compile without declaring.
What is the issue here?