摘要: 遍历集合,使用Iterator。1.遍历HashMap: 1 void func() { 2 HashMap hashMap = new HashMap(); 3 hashMap.put("Tom", 123); 4 hashMap.put("FF",... 阅读全文
posted @ 2015-08-03 20:33 pepelu 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 实现了扫描器扫描内容的类型判断,类型强制转化。 可扫描内容:String,Double,Float,Integer   阅读全文
posted @ 2015-08-03 19:50 pepelu 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 仅仅是使用方法,非源码分析。 1 public class Test { 2 3 public static void main(String[] args) { 4 TreeSet treeSet=new TreeSet(); 5 treeSet.add(... 阅读全文
posted @ 2015-08-03 11:23 pepelu 阅读(208) 评论(0) 推荐(0) 编辑