Loading…

Match the operation with its behavior in a parallel stream.

forEach
forEachOrdered
Does not have to perform the side effect in encounter order
Preserves side-effect order but may reduce the benefit of parallelism

Exercise review

Mentor
We can discuss the current task or any Java theory. I’ll help you understand it and find the next step.
Sign in to use the Mentor The Mentor uses the current exercise and your conversation history.
Sign in