View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars.java8;
2   import java.util.Arrays;
3   import java.util.List;
4   import java.util.logging.Logger;
5   
6   
7   
8   public class InputLambda14 {
9   
10  	private static final Logger LOG = Logger.getLogger(InputLambda14.class.getName());
11  
12  	public static void main(String args[]) {
13  		List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5);
14  		
15  		numbers.forEach(first -> {
16  			LOG.info("first");
17  			LOG.info("second");
18  			LOG.info("third");
19  		});
20  	}
21  }