How to make a key have multiple values in a Hashtable?
<p>I have 100 entries and I have to have to hash these into a hashtable of a limited size.</p>

<p>I know how to work with the first entry, <code>ht.put(k,v)</code> does the trick.</p>

<p>But as soon as I want to add another value to it, the old one gets overwritten. I don't want to do that, I want to append it in a linkedlist or arraylist.</p>

<pre><code>Hashtable&lt;Integer,Integer&gt; ht = new Hashtable&lt;Integer,Integer&gt;(211);

ht.put(1, 40);
ht.put (1, 60);

System.out.println(ht.get(1));
// output is 60
</code></pre>

<p>How to make it both 40 and 60?</p>