Java(19) _遍历某个目录下的文件
public static void main(String[] args) { // TODO Auto-generated method stub // System.out.println("bowen"); File file=new File("D:\\英语"); if(file.isDirectory()){ String[] ss=file.list(); for(String s:ss) { System.out.println(s); } }