Fluent Operations on Collections in Java
As far as language features go, collections are a basic necessity in Java. You can add, remove and retrieve elements, but it has always frustrated me that more complex operations, like filtering or mapping, require lines of grotesque boilerplate code with iterators. A library that you may already be using can help. It's called Guava. Before I go any further, I should mention that none of these problems exist in Java 8 with its shiny streams. Hence, this guide is only for the developers stuck in the yesteryear, because of either Android or some unupdatable legacy system.
