Also posted at: Roulette Wheel Not Working Completely - Java | Dream.In.Code
Type: Posts; User: Norm
Also posted at: Roulette Wheel Not Working Completely - Java | Dream.In.Code
Did you miss this question?
Did you change the compiler's settings to show all warnings?
To get around the problem with a call to nextLine after a call to nextInt, change all the calls to nextLine() to be calls to next().
Did you change the compiler's settings to show all warnings?
That error says that the String being indexed is empty. There is no character at index 0
The problem is the Scanner class leaves the endline char in the buffer after a nextInt(). Call nextLine()...
Is that because the if is false?
Can you copy then full text of the error message and paste it here. I don't understand what you posted.
I problem I see is shown by the warning messages the compiler generates. Make sure that all warning messages are displayed so you will see them.
Use the -Xlint option with the javac command to get...
Can you explain what problem you are having?
What is the purpose of saving the data in an array? How will the array's contents be used by the program?
I problem I see is shown by the warning...