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:
Enter maximum correct questions:
Exception in thread "main" java.lang.IllegalArgumentException: bound must be positive
at java.basejavautil.Random.nextInt Randomjava:
at ladbrokesQuiz.GameFunctions.pickQuestionAndAnswer GameFunctionsjava:
at ladbrokesQuiz.Main.main Mainjava:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
