Menu

#5 better way to remove from a hashtable

feature_request
open
nobody
None
5
2013-02-19
2000-02-25
No

Class Log.removeObjectFrom probably benefit from the following:

Hashtable hash = new Hashtable();
Object key = new Object();
Object value = new Object();
hash.put(key, value);
System.out.println(hash);
Collection c = hash.values();
c.remove(value);
System.out.println(hash);

Discussion


Log in to post a comment.