Question: JAVA - OOP my data fields from my file are years and this is to fill an array to show the min/max/avg. I had it
JAVA - OOP
my data fields from my file are years and this is to fill an array to show the min/max/avg. I had it working when I was using a decimal for the field, but I'm switching to the year. I keep getting this error, and while I know where it is telling me the error is, I don't know how to fix it


174 //fill array 175 public static int fillArray (trackData tracks int nTracks, int fields 176 double max, double min) double range max-min: int width (int) (range/ 10. 0) +1: 178 179 double counterIndex: 180 for (int i 1; iknTracks: ++i) 181 counter Index tracks [i]. length-min; 182 int integerIndex (int) counterIndex: 183 184 fields [integer Index 185 186 return width: 187
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
