I'm trying to work out the rates of for the reservation. It calculates it for the period of a given week so if you book from Tuesday to Friday. it does that fine but if I say book from Saturday to Wednesday it doesn't work. so whenever there is a roll over into a new week it stops.
Any suggestions?
while(correctDate == false)
{
System.out.println("Please enter the date you want to book. E.g 08 (8th of month)") ;
int day = input.nextInt() ;
if(day < 0 && day > 31)
{
System.out.println("Invalid...
This is a .csv file if you open it in excel it will show you all the information about a 5 ,4 and 3 star hotel so there rooms, amount available min and max occupancy and the rates per day. I think i uploaded it right
Thanks for the reply, So the reservation class should describe what a reservation is, and a reservation will have all those bits of info as mentioned.
But when it says, For each room, room type, occupancy etc..
so I am going to need a class to describe that and I am going to have to read from...
System Requirements:
Congratulations! Your software company BestSolutions Ltd has won the contract to
develop a new hotel reservation system for the L4 chain of hotels (check out
l4hotels.com! ...or something similar). At present the chain consists of a 5-star, 4-star and
3-star hotel but the...
I'm back again, it works but just wondering do I have to do the Thread.sleep(n) thing or is this(i.e what I have at the moment) okay...
public class messageDriver
{
public static void main(String args[])
{
MessageList Inbox = new MessageList() ;
int i = 0...
The time stamps are the same..
[ messageDriver.main({ }) ]
This message is from 123456 at 1:36:59am
Hi
This message is from 123456 at 1:36:59am
Hey was up
This message is from 123456 at 1:36:59am
Nothing much
This message is from 123456 at 1:36:59am
k bye
This message is from 123456...
Once again the full code is...
public void addMsg(Message MsgToAdd)
{
int i = 0 ;
boolean found = false ;
Message MsgInList ;
if(MessageList.size() == 0)
{
MessageList.add(MsgToAdd) ;
}
else...
I'm using a program called bluej and it has a built in debugger, when it get's to the the 3rd add message method in the driver the if doesn't execute and then the last two do execute, then when it goes into the display the count was equal to 4 not five but this time it displayed 3 messages with...