return f.getName().toLowerCase().endsWith(".java")
         ||f.isDirectory();一个个文件进行条件判断,符合条件被过滤出来。