I am creating a hotel booking system and I have come across a problem. Here is my main method:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor....
Type: Posts; User: dunnage888
I am creating a hotel booking system and I have come across a problem. Here is my main method:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor....
I am making a hotel booking system and can only take bookings in the month of April. I am having trouble creating the booking calendar and am using a 2d array for the month April I am not sure if...
I still don't really understand? I have been trying for hours and just can't seem to get it right.
Hi I have my program working all I need now is to output the answers to 2 decimal places. Could somebody help me out with this? Below is my code.
/*
* To change this template, choose Tools...
I have achieved the output I want for my program but the answer just continuously loops I have tried to stop the loop but I can't seem to figure out how to. Could someone help me out please?
...
program requests and reads a list of file names (one per line). Program ends when a blank line is entered.
If a file name endsWith ".txt" then print "Text File: xxxx" where xxxx is the full file...
I need to create a program that reads in 2 integers and finds the range. With this it then produces the sum of all the odd numbers within the range. Can anyone help me out with this problem?
How do I loop this if statement from my program?
if (fileNames.contains(".txt")) {
System.out.println("Text File:" + fileNames);
fileNames = scan.nextLine();
...
Yess! It works thank you so much!
Nope that does the same as before hmmm. Just incase this helps when I enter number 1 and number 2 I input the following:
Enter number 1: 5.2
Enter number 2: 16.8093
Then this is the output...
Ahhh thank you that works! However, my integerResult is now displaying 0 and no answer.
The line of code redlines and displays the message
';' expected
cannot find symbol
symbol: variable number
location: class assignment1.Casting
Yeah I tried doing that but it still has a problem with that line of code. I don't get why?
Everything is fine from that piece of code you gave me apart from one line of code.....
double finalValue = number2 / number 1;
There is an error here and the programme wont run.
Sorry to be a pain but where about in the code do I put it or does that not matter?
I need a bit of help setting one of my programmes outputs to only the 1 decimal place each time the doubleResult displays it's result it is to like 12 decimal places or something like that. How do I...