This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!

Jane Brown

Greenhorn
+ Follow
since Sep 26, 2015
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jane Brown

Carey Brown wrote:
Nothing in that loop changes the value of number or floors.



Okay, I see what you are saying. So what do I do to print those statements once I have the number of rooms for each floor?
I've been working on this for a while now and can't get it right X.X
2 years ago
Hey everyone,

I have written a program to figure out hotel occupancy. I completed the program, but my results keep coming out as an infinite loop and I have no idea why! I know it has to be false to stop the loop and I thought I had it right. I don't know if it's a stupid mistake I have done or if there is something missing. This didnt' work, but I tried putting a break statement at the end of the final 'System.out.println' section, but that brought up the number of floors again after showing me all the information. The break statement may be totally wrong there, but I am just going by what I know so far! The program must be written with while loops.

Thanks for you help, this forum has been a huge help


2 years ago
Hey, everyone. I am writing a program that I need to use the while loop for. I need to ask for the speed and number of hours traveled. It has to use a loop to display the distance the vehicle has traveled for each hour.
I need to show a chart after, like:
Hour Distance Traveled
-----------------------------
1 40
2 80
3 120

I have gotten some of it so far, I just have no clue how to get the values appear with the chart. Thanks a ton!


3 years ago
Hello again.

I have completed this program and both the city and college name are printing out together. I can't see what I have done wrong. Thanks!

3 years ago

Bear Bibeault wrote:Look at line 7 carefully. Very carefully.



Now I see it! Such a silly mistake. Thank you so much.
3 years ago

Bear Bibeault wrote:Welcome to the Ranch, Jane!

Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information. Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.

I've gone ahead and added the code tags for you. See how much easier the code is to read?



Ah sorry, thank you!
3 years ago
Hey all. I'm new to Java and I am having an issue with a program I wrote and I can not figure it out for the life of me.

This was written using TextPad. This is my program and the error message I'm getting is " missing method body, or declare abstract" I have never gotten it before and don't really know what it means. Thank you!


3 years ago