title: How could i make HashSet as parameter to the HashMap?
body: <p>I have to maintain the list of indexes for each of the key value in HashMap.
  So i declared HashMap as</p>
  
  <p><code>HashMap&lt;Integer,HashSet&lt;Integer&gt; hset =  new HashSet&lt;Integer&gt;()&gt; hm = new HashMap&lt;Integer,HashSet&lt;Integer&gt; hset =  new HashSet&lt;Integer&gt;()&gt;();
  </code>but the above declaration seems to be not correct.
  So i declared it as</p>
  
  <pre><code>HashSet&lt;Integer&gt; hset =  new HashSet&lt;Integer&gt;();
  </code></pre>
  
  <p>but here the problem is,how could i declare the type of objects stored in HashSet i,e Integer, bacause in the above declaration the HashSet is rawtype.</p>