Well, that completely broke my program. It executes "Would you like to buy a ship?" and "What is the name of the ship?" at the same time, not taking any input for "Would you like to buy a ship?". ...
Type: Posts; User: metanoia
Well, that completely broke my program. It executes "Would you like to buy a ship?" and "What is the name of the ship?" at the same time, not taking any input for "Would you like to buy a ship?". ...
Using the string.toLowercase() thing is a good idea, I'll do that.
And my loop is still broken. Guess I'll completely rework the main class.
If anybody has anything else to contribute, I'll...
I'm not actually sure how I would do that. I need the user to input "Yes", "yes", "Y", or "y" to continue, so how would I make that into a true/false condition?
Or could I throw an If statement...
Okay, I attached the program specifications. Basically, I need to make a "salesman" program selling rocket ships. My problem is that the while loop isn't working correctly.
It runs, but when it...