Question: The following code does not compile. Why not? How must it be modified? double avg Doublestream.of (3.1, -4.5, 8.9, -6.2, 1.0) %3D - map (n
The following code does not compile. Why not? How must it be modified?

double avg Doublestream.of (3.1, -4.5, 8.9, -6.2, 1.0) %3D - map (n -> Math.abs (n)) .average ();
Step by Step Solution
3.36 Rating (165 Votes )
There are 3 Steps involved in it
The code does not compile because it retu... View full answer
Get step-by-step solutions from verified subject matter experts
