Java Question. Can someone write this code
This assignment will give you practice with indefinite loops andrandom numbers.
Instructions
You are going to write a program that allows the user to play aguessing game in which your program “thinks up” an integer (byrandomly generating an integer using the Random class injava.util.Random) and then allows the user to make guesses untilthe user gets it right with cues that indicate whether the secretnumber is higher or lower than each guess.
Methods
At a minimum, your program should have the following methods inaddition to method main:
a method that introduces the game to the user
a method to play one
PayPal Gateway not configured
PayPal Gateway not configured