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.java | A program that tests the use of the class Day |
Day.java | A class that provides seven int constants for the days of a week |
DayProg.java | A program that uses the intermediate version of the class Day |
Day.java | Using a class with seven constants and toString |
DayProg.java | A program that tests the use of the new version of the class Day |
Day.java | Using a proper class with a private constructor to represent a day |
PizzaProg.java | A program that tests the use of the class Pizza |
Pizza.java | A class that represents a pizza |
Topping.java | A class that represents a topping |
PopImplProg.java | A program that tests the Pop interface and the PopImpl class |
PopImpl.java | A class that implements the Pop interface |
Pop.java | An interface for a population |
HashCodeTimes.java | A program for comparing the performance of DateImpl 's hashCode |
barry.cornelius@oucs.ox.ac.uk
.