This post originated from an RSS feed registered with Java Buzz
by Arpit Mandliya.
Original Post: Java 8 Stream Map
Feed Title: Java tutorial for beginners
Feed URL: http://feeds.feedburner.com/arpitmandliyasblog
Feed Description: A blog about java programming language and its frameworks
In this post, we will see about Java 8 Stream map function. As the name suggests, it is used to map input Stream to output stream. Java 8 Stream Map function Map function returns a stream consisting of the results of applying the given function to the elements of this stream. Function is a functional interface available in Java 8 java.util.function.Function accepts one input and produce a result. Let’s understand with the help of a simple example. Java 8 Stream Map example Let’s say you have a list of employees, now you want to convert it to list of