摘要: public static void main(String[] args) { File file= new File("e:/list"); printFile(file, 0); } static void printFile(File file ,int level){ for (int i = 0; i <level; i++) ... 阅读全文
posted @ 2016-11-01 14:04 tiancy 阅读(303) 评论(1) 推荐(0) 编辑
摘要: 一 读取文件 二写出文件 阅读全文
posted @ 2016-11-01 12:03 tiancy 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 一、Hashmap和Hashtable的区别 1 主要:Hashtable线程安全,同步,效率相对低下 HashMap线程不安全,非同步,效率相对高 2 父类:Hashtable是Dictionary HashMap是AbstractMap 3 rull:Hashtable键与值不能为null Ha 阅读全文
posted @ 2016-11-01 11:08 tiancy 阅读(270) 评论(0) 推荐(0) 编辑