标签:str inter div class highlight interface ring 代码 rri
public class Lambda { public static void main(String[] args) { //未简化 S s = new S() { @Override public void s() { System.out.println("123"); } }; s.s(); //简化 S s1 = ()->{ System.out.println("Lambda简化"); }; s1.s(); } } interface S{ void s(); }
标签:str inter div class highlight interface ring 代码 rri
原文地址:https://www.cnblogs.com/gjths/p/12199319.html