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 15

These pages contain links to the programs that are developed in Chapter 15. The title of this chapter is: Using an array to represent a collection of values.
VendingMachine.javaA class that uses simple variables for the frequency counts
VendingMachineProg.javaA program that processes the transactions of a vending machine
VendingMachine.javaA class that uses an ArrayList for the frequency counts
VendingMachineProg.javaThe new client determines the size of the vending machine
VendingMachine.javaA class that uses an array for the frequency counts
VendingMachineProg.javaA program that processes the transactions of a vending machine
VendingMachine.javaA class providing additional operations on the frequency counts
VendingMachineProg.javaA program that uses the new methods
SeatsProg.javaUsing an object of the Seats class
Seats.javaThis class uses an array to implement a collection of seats
MyArrayList.javaUsing an array to implement the List interface
MyArrayListIterator.javaA class implementing the Iterator interface for MyArrayList


© 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.