Answer :
Answer:
Explanation:
Using Java, I have recreated that same code using intStream as requested. The code can be seen below and the output can be seen in the attached picture where it is highlighted in red.
import java.util.stream.IntStream;
class Brainly
{
static int total = 0;
public static void main(String[] args)
{
IntStream.range(0, 10).forEach(
element -> {
if (element % 2 == 0) {
total += 3;
}
}
);
System.out.println("Total: " + total);
}
}
