File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Booking Hotel Function and Date. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Booking Hotel Function and Date." Watch "Booking Hotel Function and Date." New topic

Booking Hotel Function and Date.

Ixus See
Ranch Hand

Joined: Jul 17, 2011
Posts: 160
Decided to create a new topic or I might be banned soon!


When I book a hotel, do I need to update the date too?

It seems that all the hotel have dates that have pass already. Does it mean the user can't book them even there are no customer ID?

I am confuse with the date field and how is it related to booking function, can someone kindly explain to me please?

Roel De Nijs

Joined: Jul 19, 2004
Posts: 8412

Ixus See wrote:Decided to create a new topic or I might be banned soon!

I don't think someone was banned for that... But we appreciate if you create a seperate topic (with a meaningful title) for different questions. It makes the forum easier to maintain and other ranchers with a similar question can easily find your thread through the search engine or based on the topic title (when they navigate through the pages).

Did you have a good reading of the instructions (and do you understand them), because you are asking a lot of questions which are very well explained in the instructions you've got. To book a room, a CSR will search for a room and then book it by simply providing the customer id (an 8 digit number) in the appropriate field. The database file (or a record cache) should be updated accordingly of course. So you don't have to do anything with the date. And when the customer id field is not empty (already filled with a customer id) this room is already booked and can of course not be booked anymore.

The date field is simple the night the room is available. And yes, all these dates are in the past, but that doesn't matter, it just indicates how old these assignments are already

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
I agree. Here's the link:
subject: Booking Hotel Function and Date.
It's not a secret anymore!