|
-
Mar 10th, 2002, 10:52 AM
#1
hashtable
Hello!
I need a answer quick
How can I check if a key is already taken in a hashtable ?
I wanted to loop in all object in the hastable but I can not see how to loop because in hashtable we do not have any index...Any one can help me ?
This is an example of what I want to do:
-----------------------------------------------------
I have added 3 elements in my hastable:
myHashTable.put ("101", Object1);
myHashTable.put ("1241", Object2;
myHashTable.put ("19, Object3;
Now i need a piece of code to loop in the hashtable to be able to check the key of each...how can i do that ???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|