标签:port get sys can nbsp 更新 pack end top
有空来更新
2019-05-14 02:51:29
package sousuo; import java.*; import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Stream; public class FileListGenerator { public void start() { File file = new File("C:\\Users\\pc\\Desktop\\待测文件夹"); search(file); } public void search(File file) { if (file.isDirectory()) { File[] listFiles = file.listFiles(); for (File f : listFiles) { search(f); } } if (file.getName().endsWith(".ppt")) { System.out.println(file); } } public static void main(String []args){ //Scanner a=new Scanner(System.in); FileListGenerator me=new FileListGenerator(); me.start(); } }
标签:port get sys can nbsp 更新 pack end top
原文地址:https://www.cnblogs.com/xybz/p/10860109.html