摘要:
代码:返回一个目录C:\MyDir下的全部txt文件import java.io.File;import java.io.FilenameFilter;public class OpenFiles { public static void main(String[] args){ File file = new File("C:\\MyDir"); String[] files = file.list(new FilenameFilter(){ public boolean accept(File dir,String name){ ... 阅读全文