title: Unexpected array index out of bounds exception
body: <p>On the line with the "here" comment I get an index out of bounds error for some input data. It does not always occur. It does not occur when the program is run on my machine, even. It occurs when a project teammate runs the project on his laptop.</p>
  
  <p>I know there's output from the exception regarding the actual index, but for reasons I don't have that information right now. I might be able to update with the full exception soon.</p>
  
  <pre><code>public int getDistance(int[] arrayA, int[] arrayB) {
      int[][] array = new int[arrayA.length][arrayB.length];
  
      for (int i = 0; i &lt; arrayA.length; i++)
          array[i][0] = i;
  
      for (int i = 0; i &lt; arrayB.length; i++)
          array[0][i] = i; // Here
  </code></pre>
  
  <p>I cut the method off here as the remainder shouldn't be relevant.</p>
  
  <p>As you can see I create a two dimensional array from two single dimensional arrays (arrayA and arrayB) and the width and height of that array equals the length of the two single dimensional arrays. Then I set the "leftmost" column to incrementing numbers and the "uppermost" row to incrementing numnbers.</p>
  
  <p>If you need more code, I can post it.</p>