2.6. The Standings Class

The last class we'll look at is the Standings class, which contains much of the logic of the application. The task of the Standings class is to process all the games that have been played, update Team data with the results of those games, and then put the teams into order according to their win-loss percentage and (the really interesting part) applying the various NFL tiebreaking procedures used to rank teams having the same win-loss percentage.

The Standings class is the main class of the application, insofar as it is the class that makes things happen. Table 2.6 shows the properties of the Standings class. Here we see that the Standings class contains a Teams object, which holds all the teams in the league, as well ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.