File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Groovy Fundamentals video training course this week in the Groovy 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

Test and then reTest with a hashTable

nicky sajdok

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?
This is the code I have so far.

[ January 22, 2003: Message edited by: nicky sajdok ]
I agree. Here's the link:
subject: Test and then reTest with a hashTable