📅  最后修改于: 2022-03-11 14:52:06.096000             🧑  作者: Mango
代码示例1
File directory=new File("directory path");
int fileCount=directory.list().length;
System.out.println("File Count:"+fileCount);