摘要: 思路: 使用file类 1、创建file对象传入路径 2、判断对象是否存在 3.用一个对象数组存放路径下的文件 4.遍历文件夹并列出文件名 代码: public class Testfile {public static void main(String[] args) { File mFile = 阅读全文
posted @ 2018-03-29 16:45 爱编程的文科生 阅读(191) 评论(0) 推荐(0) 编辑