Monthly Archive: March 2016

Replacing your foreach loops with the Java 8 Streams API

I wanted to make a quick post about the Java 8 streams API. It’s really cool. I mainly use it to simplify foreach loops.

Isn’t this:

Much nicer like this?

(more…)