Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Stream example in java

import java.util.*; 
public class Main
{
    public static void main(String[] args)
    {  
        List<Integer> list = Arrays.asList(1, 2, 3, 4, 5); 
        list.stream().map(x -> x + 1).forEach(System.out::println);
    }
}
Source by waytolearnx.com #
 
PREVIOUS NEXT
Tagged: #Stream #java
ADD COMMENT
Topic
Name
9+1 =