本帖最后由 1021361407 于 2015-4-9 15:44 编辑
- <img border="0" alt="" src="http://bbs.itheima.com/forum.php?mod=image&aid=68393&size=300x300&key=d1d9f7e8bab6d002&nocache=yes&type=fixnone" aid="attachimg_68393"><img border="0" alt="" src="http://bbs.itheima.com/forum.php?mod=image&aid=68383&size=300x300&key=150c99bf745bcdaa&nocache=yes&type=fixnone" aid="attachimg_68383"><img border="0" alt="" src="http://bbs.itheima.com/forum.php?mod=image&aid=68382&size=300x300&key=19f5ec298f937338&nocache=yes&type=fixnone" aid="attachimg_68382">File file =new File("E:\\");
- for(File f:file.listFiles())
- System.out.println(f);
复制代码 api里不是说listFiles之表示目录中的文件么,为什么文件夹也有啊
|
|