Given:
IntStream stream = IntStream.of (1,2,3);
IntFunction<Integer> inFu= x -> y -> x*y; //line n1
IntStream newStream = stream.map(inFu.apply(10)); //line n2 newStream.forEach(System.output::print);
Which modification enables the code fragment to compile?
line n1 with:
Pasci
Highly Voted 4 years, 4 months agoDarGrin
Most Recent 4 months, 2 weeks agoiSnover
8 months, 2 weeks ago