Stream is a new feature in Java 8 that brings a lot of operation for Collections. Here I will present the most important, but for a complete list see the Java API.
In the below examples I will use a List of Strings.
The map() method converts each element into another object via the given function.
Creates a new Collection.
Returns matched elements in Collections.
Collaps the entire Collections to single element.