@@ -0,0 +1,2180 @@
+package com.anteoy.coreJava.notejava;%0A%0A/**%0A * Created by zhoudazhuang on 18-6-21.%0A */%0Aimport java.util.*;%0A%0Apublic class MultiMap%7B%0A    @SuppressWarnings(%22unchecked%22)%0A    public static void main(String%5B%5D args) %7B%0A%0A        //HashTable%0A        System.out.println(%22------HashTable------%22);%0A        Hashtable hashtable = new Hashtable();%0A        //NullPointerException%0A//        hashtable.put(null,1);%0A        //NullPointerException%0A//        hashtable.put(1,null);%0A%0A        //HashMap%0A        System.out.println(%22------HashMap%E6%97%A0%E5%BA%8F%E8%BE%93%E5%87%BA------%22);%0A        HashMap hsMap=new HashMap();%0A        // k v%E9%83%BD%E5%8F%AF%E4%BB%A5null,hashtable%E4%B8%A4%E4%B8%AA%E9%83%BD%E4%B8%8D%E8%83%BD%E6%98%AFnull%0A        hsMap.put(null,2);%0A        hsMap.put(null,null);%0A        hsMap.put(%223%22, %22Value3%22);%0A        hsMap.put(%221%22, %22Value1%22);%0A        hsMap.put(%222%22, %22Value2%22);%0A        hsMap.put(%22b%22, %22ValueB%22);%0A        hsMap.put(%22a%22, %22ValueA%22);%0A        Iterator it = hsMap.entrySet().iterator();%0A        while (it.hasNext()) %7B%0A            Map.Entry e = (Map.Entry) it.next();%0A            System.out.println(%22Key: %22 + e.getKey() + %22--Value: %22%0A                    + e.getValue());%0A        %7D%0A%0A        //TreeMap%0A        System.out.println(%22------TreeMap%E6%8C%89Key%E6%8E%92%E5%BA%8F%E8%BE%93%E5%87%BA------%22);%0A        TreeMap teMap=new TreeMap();%0A        teMap.put(%223%22, %22Value3%22);%0A        teMap.put(%221%22, %22Value1%22);%0A        teMap.put(%222%22, %22Value2%22);%0A        teMap.put(%22b%22, %22ValueB%22);%0A        teMap.put(%22a%22, %22ValueA%22);%0A        Iterator tit = teMap.entrySet().iterator();%0A        while (tit.hasNext()) %7B%0A            Map.Entry e = (Map.Entry) tit.next();%0A            System.out.println(%22Key: %22 + e.getKey() + %22--Value: %22%0A                    + e.getValue());%0A        %7D%0A%0A        //LinkedHashMap%0A        System.out.println(%22--LinkedHashMap%E6%A0%B9%E6%8D%AE%E8%BE%93%E5%85%A5%E7%9A%84%E9%A1%BA%E5%BA%8F%E8%BE%93%E5%87%BA--%22);%0A        LinkedHashMap lhsMap=new LinkedHashMap();%0A        lhsMap.put(%223%22, %22Value3%22);%0A        lhsMap.put(%221%22, %22Value1%22);%0A        lhsMap.put(%222%22, %22Value2%22);%0A        lhsMap.put(%22b%22, %22ValueB%22);%0A        lhsMap.put(%22a%22, %22ValueA%22);%0A        Iterator lit = lhsMap.entrySet().iterator();%0A        while (lit.hasNext()) %7B%0A            Map.Entry e = (Map.Entry) lit.next();%0A            System.out.println(%22Key: %22 + e.getKey() + %22--Value: %22%0A                    + e.getValue());%0A        %7D%0A    %7D%0A%0A%7D%0A

add multiMap