摘要: 遍历目录下所有文件 1.非递归方式 public static void folderMethod1(String path) { int fileNum = 0, folderNum = 0; File file = new File(path); LinkedList<File> list = 阅读全文
posted @ 2019-06-14 14:45 Helios_Fz 阅读(29554) 评论(2) 推荐(2) 编辑
摘要: 转自:https://www.cnblogs.com/dolphin0520/p/3681042.html Java中的hashcode方法 哈希表这个数据结构想必大多数人都不陌生,而且在很多地方都会利用到hash表来提高查找效率。在Java的Object类中有一个方法: public native 阅读全文
posted @ 2019-06-14 09:34 Helios_Fz 阅读(1741) 评论(0) 推荐(0) 编辑