This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Saving details of rooms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Saving details of rooms" Watch "Saving details of rooms" New topic
Author

Saving details of rooms

Ross McManus
Greenhorn

Joined: Jul 28, 2010
Posts: 28
I am creating a hotel booking system.

On the sheet I have it tells me

"You will be asked to save details of rooms. Remember to add the appropriate interface in the Room class declaration. "

I a GUI done which is this




I don't understand which room details I have to save. I guess it will be the roomNumber, type, capacity, rate etc but do I just save what is in the toString methods on each class or would I have to create rooms then save them like on the GUI I have bedroom's 201 to 212 do I have to create 12 bedroom objects then save the details of them?

Later on it says that I have create a vector of the rooms to be searched.

The code I have so far for the Room, Bedroom & MeetingRooms are.









 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Saving details of rooms
 
Similar Threads
help with a booking system
if statement
Quick Question
Adding JLabels to a vector
Search A Vector