title: Remove an Element From HashTable?
body: <p>I want to remove elements from <code>HashTable</code>,
  I use <code>hashTable.remove()</code> for this but not getting</p>
  
  <pre><code>Hashtable&lt;Integer,String&gt; players = new Hashtable&lt;Integer,String&gt;();
  
          players.put(1, "Sachin Tendulkar");
          players.put(2, "Rahul Dravid");
          players.put(3, "Virat Kohli");
          players.put(4, "Rohit Sharma");
  
          Enumeration&lt;String&gt; enumration = players.elements();
  
          while(enumration.hasMoreElements()){
              String elmnt = enumration.nextElement();
              System.out.println(elmnt);
              if(elmnt.startsWith("R")){
                  players.remove(elmnt);
                  System.out.println(elmnt+"::Contains R");
              }
  
          }
  
          System.out.println(players);
  </code></pre>
  
  <p>The output that i get is:</p>
  
  <pre><code>Rohit Sharma
  Rohit Sharma::Contains R
  Virat Kohli
  Rahul Dravid
  Rahul Dravid::Contains R
  Sachin Tendulkar
  {4=Rohit Sharma, 3=Virat Kohli, 2=Rahul Dravid, 1=Sachin Tendulkar}
  </code></pre>