1、Function函数
1public static void main(String[] args) { 2 TestController t = new TestController(); 3 new TestController().aaa(3,value -> t.bbb(value)); 4} 5 6public int bbb(int b){ 7 return b+100; 8} 9 10public void aaa(int a,Function<Integer,Integer> f){ 11 Object apply = f.apply(a); 12 System.out.println("ggg:"+apply); 13}