我已經做了下面的哈希表,但現在我試圖用相同的鍵存儲多個值,但我無法這樣做,請告知如何實現,然後如何迭代超過顯示值安裝有多個鍵..關於存儲多個值
Hashtable companies = new Hashtable();
// Java Hashtable example to put object into Hashtable
// put(key, value) is used to insert object into map
companies.put("Google", "United States");
companies.put("Nokia", "Finland");
companies.put("Sony", "Japan");
我想實現像..
Hashtable companies = new Hashtable();
// Java Hashtable example to put object into Hashtable
// put(key, value) is used to insert object into map
companies.put("Google", "United States","France");
companies.put("Nokia", "Finland","Japan");
companies.put("Sony", "Japan", "indonesia");
人請指教.. !!
使用[番石榴Multimap之](http://guava-libraries.googlecode.com/svn/tags/release03/javadoc/com/google/common/collect/Multimap.html) – jlordo