Dear Instructor: For this homework we are asked to create a HashSet, LinkHashSet and ArrayList object. I have created the first two. The way I iterate is I created another method outside of the main driving method in the main class. I used this method called filter to iterate over the list. But to do this, I had to cast the HashSet and LinkHashSet to a Collection object. So, I had to pass a collection object to the filter method. This has cut the repetitiveness out of my code. Or do you want an individual iterator for each object and iterate that object?
Respects, JKid314159 http://existentialists.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~---
