View Javadoc
1   package com.puppycrawl.tools.checkstyle.grammars.java8;
2   
3   import java.util.logging.Logger;
4   
5   
6   public class InputLambda1 {
7   
8   	private static final Logger LOG = Logger.getLogger(InputLambda1.class.getName());
9   
10  	static Runnable r1 = ()->LOG.info("Hello world one!");
11  	static Runnable r2 = () -> LOG.info("Hello world two!");
12  	
13  	public static void main(String[] args) {
14  		r1.run();
15  		r2.run();
16  	}
17  }