Question: Please help me resolve the following errors in Main function and GameFunctions & GameSetup function so I can run my program smoothlyConsole Enter player name:

Please help me resolve the following errors in Main function and GameFunctions & GameSetup function so I can run my program smoothlyConsole
Enter player name:
Richard
Enter number of lives:
3
Enter maximum correct questions:
10
Exception in thread "main" java.lang.IllegalArgumentException: bound must be positive
at java.base/java.util.Random.nextInt (Random.java:322)
at ladbrokesQuiz.GameFunctions.pickQuestionAndAnswer (GameFunctions.java:13)
at ladbrokesQuiz.Main.main (Main.java:25)
 Please help me resolve the following errors in Main function and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!