ArrayIndexOutOfBoundsException trying to access data
<p>I am getting an array index out of bounds exception in the following code:</p>

<pre><code>for (int i=1; i&lt;11; i++) {
    int a[][] = new int[10][3];
double LeftTrim = 1.0;
double RightTrim = 1.0;

a [i][0]=(int) (LeftTrim*((i)*25));
a [i][1]=(int) (RightTrim*((i)*25));
a [i][2]= 5000;

//leftWheel, rightWheel, Milliseconds
myf.setWheelVelocities(a[i][0], a[i][1], a[i][2]);
JOptionPane.showMessageDialog(null, + (a [i][0]  +  a [i][1])/2 + "wheel velocities"  + " | " + a [i][2] + " Milliseconds" +  " Click OK to continue...");
}
</code></pre>

<p>Every-time I reach the 9th increment Eclipse gives me the error </p>

<pre><code>"Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 10"
</code></pre>

<p>I have to test the velocity up to 250, but when I reach 225 and I click 'Ok' on 'Click ok to continue..." this error shows up! Am I going out of the array bounds or something? </p>

<p>EDIT: The speed velocity has to start from 25, 50, 75 ... 250 (so ten in all) </p>

<p>Thank you!</p>
