Java 8: Parallel FOR loop
Read up on streams, they’re all the new rage. Pay especially close attention to the bit about parallelism: “Processing elements with an explicit for-loop is inherently serial. Streams facilitate parallel execution by reframing the computation as a pipeline of aggregate operations, rather than as imperative operations on each individual element. All streams operations can execute … Read more