Understanding Java   Chapters  01  02  03  04  05  06  07  08  09  10  11  12  13  14  15  16  17  18  19  20  21

Understanding Java: Chapter 17

These pages contain links to the programs that are developed in Chapter 17. The title of this chapter is: Using enumerations, sets and maps.
DayProg.javaA program that tests the use of the class Day
Day.javaA class that provides seven int constants for the days of a week
DayProg.javaA program that uses the intermediate version of the class Day
Day.javaUsing a class with seven constants and toString
DayProg.javaA program that tests the use of the new version of the class Day
Day.javaUsing a proper class with a private constructor to represent a day
PizzaProg.javaA program that tests the use of the class Pizza
Pizza.javaA class that represents a pizza
Topping.javaA class that represents a topping
PopImplProg.javaA program that tests the Pop interface and the PopImpl class
PopImpl.javaA class that implements the Pop interface
Pop.javaAn interface for a population
HashCodeTimes.javaA program for comparing the performance of DateImpl's hashCode


 1998-2002 Barry Cornelius
Any queries about this page should be sent to barry.cornelius@oucs.ox.ac.uk.
This page was last updated on 6 March 2001.