title: How to have multimap functionality in Java?
body: <p>I want to have the functionality of <a href="https://www.google.co.in/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0CB4QFjAAahUKEwj5x56q2ezGAhVkKaYKHTKDALs&amp;url=http%3A%2F%2Fwww.cplusplus.com%2Freference%2Fmap%2Fmultimap%2F&amp;ei=iXquVbnfKuTSmAWyhoLYCw&amp;usg=AFQjCNHbTAgd7jouzXIC_FC3MDpeRi6ODA&amp;sig2=frmQJOU4iPb4WO-JrhogHA&amp;bvm=bv.98197061,d.dGY" rel="nofollow">MultiMap</a> in Java, providing the same functionality as that of cpp MultiMap so that I am able to have multiple keys with the same value. Multiple elements in the container can have equivalent keys. I thought this will work : </p>
  
  <pre><code>TreeMap&lt;Key, TreeMap&lt;Key, Value&gt; &gt;. 
  </code></pre>
  
  <p>Any help is appreciated.</p>