2008年12月1日java遍历文件夹:java遍历文件展示文本格式的文件树
package io; import java.io.*; public class DocTree { File root = null; public DocTree(File f){ this.root = f; } public void showTree(File root, int depth){ drawFile(root, depth); if(!root.isFile()){ File[] files = root.listFiles(); if(files!=null&&files.length!=1){ for(int i=...
[阅读全文] [PDF]
1 共1条 分1页