Java code- Hotel Reservation System?
Saturday, February 27th, 2010Hi i am creating a basic hotel reservation system and im having trouble with the room class. basically once a room is booked, it becomes unavailable…. I want a room to be selected and then make that room unavailable when another user uses the booking system.
i dont understand how to create an array of rooms… i have 4 rooms available in my single room class (rooms 1,2,3,4) when i run the main program i want the user to be automatically assigned one of these rooms and then make it unaccessble to the next user…what code do i have to put in the main class?? and in the single class:S im majorly confused!
help would be greatly appreciated









