Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Java in General and the fly likes Test and then reTest with a hashTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Test and then reTest with a hashTable" Watch "Test and then reTest with a hashTable" New topic
Author

Test and then reTest with a hashTable

nicky sajdok
Greenhorn

Joined: Jan 22, 2003
Posts: 14
Hi I Come here in need of some help.
I want to be able to test the hashTable to see if anything is equal to s1, And if there is get there key values and put them into a arraylist to use in another part of my code.
After I have used the values that are in the ArrayList, I need to empty the Arraylist, And also the values that are equal to s1 from the HashTable. After this is done I need to test the next string (in this case it would be s3), And use it in the same way as before, and keep doing this until I have used all the Strings that are in the HashTable.
Hope SomeOne has the solution?
Thankyou
Nicky
This is the code I have so far.

[ January 22, 2003: Message edited by: nicky sajdok ]
 
jQuery in Action, 2nd edition
 
subject: Test and then reTest with a hashTable