15-100 Exam #1, Question #1 (Afternoon Edition)

Please implement a class, ConferenceRoomList, that functions as a list, indexed by roomNumber, of Reservations associated with individual conference rooms. You are provided with the Reservation class, which describes simply objects composed of only a contactPerson and the numberOfPeople attending the event.

The ConferenceRoomList class should have the following properties:

It is possible, of course, that the user will enter an InvalidRoomNumber. Should this occur, the affected method should return nothing. It should instead handle it using the typical Java mechanism for informing the user of the problem. You are not responsible for other error conditions.