/* the Hotel is an ArrayList of Reservations it allows a person to request a room and cancel their reservation also we can add more rooms */ import java.util.ArrayList; public class Hotel{ //instance variable, ArrayList tracks current reservations private ArrayList rooms; //constructors, can specify how many rooms to start with //default is 5 rooms public Hotel(){ rooms = new ArrayList(); rooms.ensureCapacity(5); for (int index=0; index<5; index++) rooms.add(null); } public Hotel(int numRooms){ rooms = new ArrayList(); rooms.ensureCapacity(numRooms); for (int index=0; index