Thursday, October 15, 2015

How To Use Functional Operator in Java Programming Language + video tutorial

How To Use Functional Operator in Java Programming Language

The Following script is the simplest way to declaring and using Functional Operator in Java programming language:

import java.util.ArrayList;
import java.util.List;

public class UseFunctionalOperator {
    public static void main(String[] args) {
        List<Integer> x;
        x = new ArrayList<>();
x.add(1);
x.add(2);
x.add(3);
x.add(4);
        
        //use functional operation
        x.stream().forEach(System.out::println);
    }
    
}

output:
or you can see the tutorial video here:



ShadowOfBdg© - All rights reserved. 

No comments:

Post a Comment