简介
函数式编程就是类似于这样的东西
class MyTest{
public static void main(String[] args) {
new Thread(MyTest::hello).start();
}
public static void hello(){
System.out.println("hello lambda");
}
}
其中 new Thread
和 start()
和其他的东西大家应该都很熟悉了,但是 MyTest::hello
这串大家估计都很懵逼
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)