O
Java SE 8 Programmer II
196 Questions
Question No. 1
Given the code fragment:
UnaryOperator<Double> uo1 = s -> s*2;//line n1
List<Double> loanValues = Arrays.asList(1000.0, 2000.0);
loanValues.stream()
.filter(lv -> lv >= 1500)
.map(lv -> uo1.apply(lv))//line n2
.forEach(s -> System.out.print(s + “ “));
What is the result?
Choose the correct option from the given list.
01 / 196