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

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

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

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!