title: How do I remove an element from a hashtable using its value and not the key?
body: <p>I'm new to hash table and I'm just figuring out the basic operations on it.
  I have a hash table created as shown below and inserted values also.</p>
  
  <pre><code>Hashtable&lt;Integer , String&gt; ht = new Hashtable&lt;Integer , String&gt;();
  ht.put(1234, "ABCD");
  ht.put(2345, "EFGH");
  ht.put(4567, "IJKL");
  </code></pre>
  
  <p>I am able to delete the element needed using the key as shown below</p>
  
  <pre><code>System.out.println("Deleting entry with key 2345");
  ht.remove(2345);
  System.out.println(ht.toString());
  </code></pre>
  
  <p>which gives the following output</p>
  
  <pre><code>Deleting entry with key 2345
  {4567=IJKL, 1234=ABCD}
  </code></pre>
  
  <p>I am not able to find any method which helps with locating the element in the hashtable using the value as an index and deleting the element. How do I go about it?</p>