Madhavan Lakshminarayanan

SimpleStream, a simpler way to use Java 8 Streams


When Java 8 came out last year, it finally introduced lambdas, a much-awaited language feature, and along with it, a new way to manipulate data in the form of streams. While streams make it significantly easier to perform aggregate operations on collections, common tasks still involve boilerplate code that could easily be eliminated. For example:

// Collect names into a list;

// Compute sum of salaries;

Wouldn’t it be nicer to write something like this instead?

// Collect names into a list

// Compute sum of salaries

SimpleStream is a wrapper around Java 8 Streams that lets you write more concise code, like in the above example. It’s a single Java file that you can drop into your project and start using immediately.

Learn more and download on GitHub