Page 1 of 1

About Question enthuware.ocpjp.v8.2.1793 :

Posted: Fri Mar 04, 2016 1:37 pm
by javalass

Code: Select all

ls.stream().reduce((a, b) -> a > b ? a : b);
This is actually a valid lambda expression that implements Comparator (...)
It doesn't implement Comparator, it performs a reduction using a BinaryOperator<Integer>.

Re: About Question enthuware.ocpjp.v8.2.1793 :

Posted: Fri Mar 04, 2016 8:37 pm
by admin
Fixed.
thank you for your feedback!
Paul.