Im making a guessing game for my class and I need some help for adding a \"play again\" feature at the end of the game when you\'ve guessed the right number:
pub
One simple approach would be to move the code you've written into a function
public void play() { ... }
and from main do something like:
main
do { play(); playAgain = promptUser; } while(playAgain);