This Java application is a simple "Guess the Number" game where the user tries to guess a randomly generated number between 0 and 50.
- Enter a guess between 0 and 50 when prompted.
- If your guess is correct, you win.
- If your guess is out of range, you'll be asked to enter a valid guess.
- If your guess is incorrect, try again until you guess correctly.
- Java: Programming language used for the application.
- Scanner: Used for reading user input.
- Random: Used for generating random numbers.
- Copy the code into
Main.java
. - Compile with:
javac Main.java
- Run with:
java Main
Enjoy the game!