下面哪些写法能在 java8 中编译执行()
public class TestJdk08 { public static void main(String args[]){ File file =new File("/Users/hao/Downloads"); File[] ff=file.listFiles( (File f)->f.getName().endsWith(".caj")); for (File ss: ff) { System.out.println(ss.getName()); } } }