File path = new File("your dir");String[] list;list = path.list();for(int i = 0; i < list.length; i++) System.out.println(list[i]); 相关文章: