public class TestFile {
public static void show(File f){
if(f.isDirectory()){
File[]ff=f.listFiles();
for(int k=0;k<ff.length ;k++){
show(ff[k]);
}
}
System.out.println(f.getAbsolutePath());
}
public static void main(String[]args)throws Exception{
File f=new File("d://1
");
show(f);
}
}
慕仰9221625
相关分类