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 InputLambda5 {
9   
10  	private static final Logger LOG = Logger.getLogger(InputLambda5.class.getName());
11  
12  	public void doSomething() {
13  		List<Integer> numbers = Arrays.asList(1, 2, 3, 4, 5, 6);
14  		
15  		numbers.forEach((Integer value) -> {LOG.info(value.toString());});
16  	}
17  }