About Question enthuware.ocpjp.v8.2.1793 :
Posted: Fri Mar 04, 2016 1:37 pm
Code: Select all
ls.stream().reduce((a, b) -> a > b ? a : b);
It doesn't implement Comparator, it performs a reduction using a BinaryOperator<Integer>.This is actually a valid lambda expression that implements Comparator (...)