Thanks everyone. I needed to change the initialization to happen inside the do-while loop and everything is fine now.
I shall play with your other suggestions as well.
Type: Posts; User: derekeverett
Thanks everyone. I needed to change the initialization to happen inside the do-while loop and everything is fine now.
I shall play with your other suggestions as well.
ok i have done as you suggested and soaked up the newline after the int is entered. This worked, the program now waits for the user to answer the "play again" question. However, now if the user...
Thank you.. exactly what I needed to know.
Hi everybody!
I am brand new to Java and this is my first post here. This is my code for my attempt at a number guessing program. It runs the way I intended except for the part where it asks the...