// class TreasureCollection: Models a collection of Treasure items // sbj May 1998; updated to Java 1.1 May 1999 import java.awt.*; class TreasureCollection { // Models a collection of treasure items public int maxItems; private Treasure[] items; // To hold the Treasure objects // Constructor sets up an array of treasures public TreasureCollection(int initMaxItems) { maxItems = initMaxItems; items = new Treasure[maxItems]; for (int i=0; i