摘要:
遍历集合,使用Iterator。1.遍历HashMap: 1 void func() { 2 HashMap hashMap = new HashMap(); 3 hashMap.put("Tom", 123); 4 hashMap.put("FF",... 阅读全文
摘要:
实现了扫描器扫描内容的类型判断,类型强制转化。 可扫描内容:String,Double,Float,Integer 阅读全文
摘要:
仅仅是使用方法,非源码分析。 1 public class Test { 2 3 public static void main(String[] args) { 4 TreeSet treeSet=new TreeSet(); 5 treeSet.add(... 阅读全文