tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Java 8 Features > Stream API > Stream Mapping Function

Stream Mapping Function

Author: Venkata Sudhakar

The below example shows how to alter the stream by applying transformation or mapping function. This returns a stream consisting of the results of applying the given function to the elements of this stream


It gives the following output,

1
4
9
16

Student#1
Student#2
Student#3
Student#4

1.0
2.0
3.0
4.0

 
  


  
bl  br