安装参照:
http://jingyan.baidu.com/article/d169e186a8532a436611d8a7.html
简单步骤:
1、在eclipse中Help -> EclipseMarketplace打开应用商店
2、搜索Java 8 Kepler,然后安装组建,安装完成后需要重启
java8新增相关语法可参照官网:
http://www.oracle.com/technetwork/cn/articles/java/lambda-1984522-zhs.html
摘录简单的一个hello word:
public class Hello { interface HelloService { String hello(String firstname, String lastname); } public static void main(String[] args) { HelloService helloService=(String firstname, String lastname) -> { String hello="Hello " + firstname + " " + lastname; return hello; }; System.out.println(helloService.hello(args[0], args[1])); } }