About Question enthuware.ocpjp.ii.v11.2.3333 :
Posted: Mon Aug 12, 2019 12:00 pm
The explanation for
double average = nums.parallelStream().mapToInt(i->i).average();
seems to be wrong.
there is no method parallelStream() on the Stream interface
see:
https://docs.oracle.com/en/java/javase/ ... tream.html
double average = nums.parallelStream().mapToInt(i->i).average();
seems to be wrong.
there is no method parallelStream() on the Stream interface
see:
https://docs.oracle.com/en/java/javase/ ... tream.html