Question: 2. (20 points) Create a class named PrintRandom. In the main() method, write a do-while loop that repeatedly prints random numbers between 0 and 1000

2. (20 points) Create a class named PrintRandom. In the main() method, write a do-while loop that repeatedly prints random numbers between 0 and 1000 (inclusive) until a number above 900 is printed. At least one line of output should always be printed. The output for a sample execution of the program is shown below. >java PrintRandom Random Number: 242 Random Number: 19 Random Number: 805 Random Number: 139 Random Number: 962
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
