title: Find Maximum Number Index In 2D Array
body: <p>So I'm trying to come up with this method that will display the index of the maximum number in the 2D array. I was able to do it for a single D array, but I'm having trouble doing it for the 2D.</p>
  
  <pre><code>public static int findMaximumValue(int[ ][ ] a)
  {
     int maxVal = a [0][0];
     int i = 0;
  
     for(i = 0; i &lt; a.length; i++)
     {
        for(int j = 0; j &lt; a[0].length; j++)
        {
           if(a[i][j] &gt; maxVal)
           {
              maxVal = a[i][j];
           }
        }
     }
     return(maxVal);
   }   
  </code></pre>
  
  <p><strong><em>2D ARRAY</em></strong></p>
  
  <pre><code>public static int [][] findMaximumIndex(int[ ][ ] a)
  {
     int maxVal = a[0][0];
     int [][] maxIndex = new int [1][2];
     int row = 0, col = 0; 
  
     for(row = 0; row &lt; a.length; row++)
     {
        for(col = 0; col &lt; a[row].length; col++)
        {
           if(a[row][col] &gt; maxVal)
           {
             maxVal = a[row][col];
             maxIndex [1] [2] = a[row][col];
           }
        }
     }
     return(maxIndex); 
  }
  </code></pre>