Java Lambda implementation and an ArrayList extension to make use of it