Question: Java, missing my decimal for this problem. I have everything else correct. Not sure what I missed, please help. If an IllegalArgumentException is thrown, the
Java, missing my decimal for this problem. I have everything else correct. Not sure what I missed, please help.



If an IllegalArgumentException is thrown, the main method should catch it, print "Test scores must have a value less than 100 and greater than 0." and terminate the program.
Here's my code:
import java.util.*; class TestScores{ private int[] scores; public TestScores(int[] scores){ this.scores=scores; } public int average(){ int sum=0; for(int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
