ArrayIndexOutOfBoundsException : Need resolution
<p>Im relatively new to Java and I'm getting the following ArrayIndexOutOfBoundsException. Any insight would be helpful.</p>

<pre><code>public void findRowSumColumnSum( int [][] inputMatrix) {// need to pass inputMatrix to this method. 
    int rowTotal[] = new int[inputMatrix.length];
    int columnTotal[] = new int[inputMatrix.length];
    for(int row= 0; row&lt; inputMatrix.length; row++)
    {
        rowTotal[row] = 0;
        for(int column= 0; column&lt; inputMatrix.length; row++)
        {
            rowTotal[row]+= inputMatrix[row][column];// Array Out of Bounds Exception here-- Line 29
        }
    }
    for(int column= 0; column&lt; inputMatrix.length; column++)
    {   columnTotal[column] = 0;
        for(int row= 0; row &lt; inputMatrix.length; row++)
        {
            columnTotal[column]+= inputMatrix[row][column];
        }
    }
</code></pre>

<p>The Stack trace is </p>

<pre><code>:java.lang.ArrayIndexOutOfBoundsException: 3

   at source.test.MinTimeSlots.findRowSumColumnSum(MinTimeSlots.java:29)
    at source.test.MinTimeSlots.drivingFunction(MinTimeSlots.java:105)
        at source.daa.test.MinTimeSlots.main(MinTimeSlots.java:140)
</code></pre>
