September 2002
Intermediate to advanced
608 pages
14h 20m
English
As soon as we start trying to process the data in the Team and Game classes, we will realize that we need to operate on various subsets of the data. We'd like to know what teams are within the NFC West, or which games played by the New York Jets were within its own division. So two new classes, Teams and Games, were created to be containers for all the Team objects and all the Game objects, respectively, and to provide methods for answering various queries about the data. The Games class includes in its constructor all the data for games played during the 2000 NFL season, which is loaded into an ArrayList. There are then methods to return all games, division games played by a team, conference games played ...
Read now
Unlock full access