62,621
社区成员
发帖
与我相关
我的任务
分享@FunctionalInterface
interface Test2 {
String test2(String a);
}
public class TestInterface implements TestI {
public TestInterface() {
// TODO Auto-generated constructor stub
System.out.println("TestInterface构造方法");
}
String Test3(String tem){
System.out.println(tem);
return "te";
}
public static void main(String[] args) {
Test2 Tes2 = TestInterface::Test3;
}
MyTest mt2 = String::substring;
是没有问题的
这个String Substring 是静态方法么