public class e {
public static void main(String[] args) {
File file = new File("F:\\");
getCount(file);
}
public static HashMap<String, Integer> getCount(File src) {
HashMap<String, Integer> hm = new HashMap
统计一个文件夹中每种文件的个数并打印(考虑子文件夹)
最新推荐文章于 2023-12-18 09:11:04 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)