Re: Java array calculation
Array indexes range from 0 to the length-1. The max index for a 59 element array would be 58.
Change the for loop values so the index's value does not go past 58.
If you can't tell what the values are, add a println statement immediately after the for statement that prints out the value of v.
The for statement should use the array's .length attribute to control the looping, not a magic/hardcoded number.
Re: Java array calculation
Oh. I forgot the different between length and index. Thanks for the help!