Hi ! Hello, I would like to ask you a question that I can not answer, java would you like to play again It is urgent, Thank you kindly answer me please quickly enough.
You can ask the player to confirm the answer before break out the while loop.
add question before line24: win=true;
and check the answer, then decide break out or reset the guess number.