A simple number guessing game program in Java was created.The program generates a random number between 1 and 100 for the user to guess.The user has 10 attempts to guess the number, and based on their input, they are guided to guess higher or lower.If the user finds the number within the attempts, a success message is displayed; otherwise, the correct number is revealed.