Hashtable q
- From: "pickle" <no@xxxxxxxxx>
- Date: Sat, 11 Jun 2005 02:40:42 -0400
When traversing an Enumeration of Hashtable keys, I know that modifying the
HT can cause problems. But is doing lookups okay? E.g., in the following
code:
<assume ht is a reference to a Hashtable object>
Enumeration e = ht.keys();
Object o;
while(e.hasmore()) {
o = e.next();
System.out.println(o + ": " + ht.get(o));
}
Is this guaranteed to print out all of the key-value pairs?
.
- Prev by Date: Macintosh Java Applet Please Help
- Next by Date: constructor problem
- Previous by thread: Macintosh Java Applet Please Help
- Next by thread: constructor problem
- Index(es):