I need help with this :(( In java
Write a program that has a user guess a secret number between 1 and 10.
Store the secret number in a variable called secretNumber and allow the user to continually input numbers until they correctly guess what secretNumber is.
For example, if secretNumber was 6, an example run of the program may look like this:
I'm thinking of a number between 1 and 10.
See if you can guess the number!
Enter your guess: 4
Try again!
Enter your guess: 3
Try again!
Enter your guess: 1
Try again!
Enter your guess: 10
Try again!
Enter your guess: 6
Correct!
Note:
Make sure that the the secretNumber is 6 when you submit your assignment! It will only pass the autograder if the value is 6.