September 2002
Intermediate to advanced
608 pages
14h 20m
English
As we mentioned when discussing the Standings class, the presentation logic was removed from that class. The presentation logic was in two methods: printConferenceStandings() and printDivisionStandings(). For this round of refactoring, we've simply separated those methods but otherwise left them intact.
With the separation, Console now becomes our main class, rather than Standings. If you examine the main() method, you'll see that we create both a Console object and a Standings object, and then alternately invoke methods of the Standings object (to perform calculations) and the Console object (to display the results).
Console doesn't get a separate interface class; this is because Console ...
Read now
Unlock full access