Given the code fragment: List<Integer> codes = Arrays.asList (10, 20); UnaryOperator<Double> uo = s -> s +10.0; codes.replaceAll(uo); codes.forEach(c -> System.out.println(c)); What is the result?
The 12th line of the program will compile error, because the generic type of List is Integer, but UnaryOperator uses Double, which is different, so the compilation error.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
M_Jawad
Highly Voted 5 years ago6c84cb9
Most Recent 5 months, 4 weeks agoasdfjhfgjuaDCV
11 months agosteefaand
12 months agoWilsonKKerll
2 years, 10 months agothetech
5 years, 1 month ago