posted 15 years ago
Hi there, I'm not sure if this works or not. You know how to iterator through a map right? Ultimately once you get the Team object, you need an iterator inside the Team object to iterate throught the Game object.
Now the problem is what type of object is Team? If it is some kind of collection then it's easy. If not, is making it into a collection a possible solution?
Another approach is instead of using ArrayList<Game> you use your own collection that extends ArrayList. Then in it you call your iterator in your custom collection to iterate Game.
Hope this helps.
K. Tsang CEng MBCS PMP PMI-ACP OCMJEA OCPJP