what is wrong with part of this code? (if else, Java)
Please help me; what is wrong with part of this code. I'm just starting to learn Java, don't judge too harshly :( The program should ask for numbers until the requested number (73) is entered. My program asks only 2 times and stops. What is a mistake? Thank you in advance for your cooperation! part of this code: if (guess < guessable) { System.out.println("Guess bigger: "); } else if (guess > guessable) { System.out.println("Guess smaller: "); } else { done = true; System.out.println("You guessed right "); } Task: Need to guess the number. The number you need to guess is 73. The program prompts you to enter a number until the correct number (73) is entered. If the entered number is greater than 73, the program displays: “Guess smaller” and if it is greater than 73, then, accordingly, “Guess bigger” Example: 1. Play 2. Show the game 0. Termination Enter your choice (0-2): 2 The game has not been played 1. Play 2. Show the game 0. Termination Enter your choice (0-2): 1 Enter your name: Mikael Enter your address: China Give a guess: 80 Guess smaller: 70 Guess bigger: 73 You guessed correctly 1. Play 2. Show the game 0. Termination Enter your choice (0-2): 2 Mikael guessed the number 73 3 times