Java Tutorials JDK 8 EA: Collections Trail
By Joni Gordon-Oracle on Oct 15, 2013
The Collections trail in the Java Tutorial has been updated to describe the preferred method of traversing collections with JDK 8, which is obtaining a stream and invoking its aggregate operations. Aggregate operations are often used with lambda expressions to make programming more expressive using fewer lines of code. The Collection, Set, List, and Map interface pages now contain examples that demonstrate this new language feature.