This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Test and then reTest with a hashTable