Would this be the proper way to calculate each elements of an array? The []speed will be import in from a file. There a total of 59 speed thus I have [59]. Then I want to convert the speed ( Which is in knot to mile). I keep getting "java.lang.ArrayIndexOutOfBoundsException: 59"
when I run the program at the line " mile[v] = (int)((speed[v]) * 1.15);" Thanks
int[] speed = new int[59]; int[]mile = new int[59]; for(int v = 0 ; v <= 60;v++) { mile[v] = (int)((speed[v]) * 1.15); }