2.8. Exercises

We haven't introduced any new technologies yet, so there aren't any exercises that are relevant to the book's subject matter that I can suggest at this point. However, if you're interested in using the example application to actually track results, then there are a number of enhancements that could improve the usefulness of the package.

2.1 Three-way comparisons: The NFL rules provide different tiebreaker rules for cases where three or more teams are tied at any point during the tiebreaker procedure. Our package ignores this in favor of being able to leverage the Comparator capability provided by Java, which supports only two-way comparisons. Update the package to properly handle three-way ties.

2.2 Forward-looking clinch/elimination ...

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.