title: 2D Array Operations
body: <p>I am having difficulty figuring out why my methods <code>getLowestInRow</code> and <code>getHighestInRow</code> seem to be skipping the second column.  I've got a nested for loop iterating over the 2D array, but my output for <code>getLowestInRow</code> is not correct, e.g. for row 4 it tells me that 66 is the lowest, where 54 is actually the lowest.</p>
  
  <pre><code>...
  
    int[][] testData={{3, 5, 7}, {33, 44, 12}, {1, 45, 67}, {66, 54, 99}};
  
  
  ...
  
   /* method getHighestInRow  
     takes a 2d int array, the 
     number of rows and the number 
     of columns as input and
     prints the highest number
     of all of the elements 
     in each individual row of
     the array as (int) outputs 
   */  
  
   public static int getHighestInRow (int[][] x, int rowCount, int colCount)
   {
       int highestInRow = x[0][0];
  
       for (int rowIndex = 0; rowIndex &lt; rowCount; rowIndex++)
       {
         for (int colIndex = 0; colIndex &lt; colCount; colIndex++)
         {
         highestInRow = x[rowIndex][0];
         if (x[rowIndex][colIndex]&gt;highestInRow)
               highestInRow=x[rowIndex][colIndex];
         }
       System.out.println(highestInRow + " is the highest number in row " + (rowIndex+1) + ".");
       highestInRow = 0;
       }
       return highestInRow;
   }
  
  /* method getLowestInRow
     takes a 2d int array as input 
     returns the lowest number
     of all of the elements 
     in each individual row of
     the array as (int) outputs 
   */  
  
  //unfinished
  public static int getLowestInRow (int[][] x, int rowCount, int colCount)
  {
       int lowestInRow = x[0][0];
  
       for (int rowIndex = 0; rowIndex &lt; rowCount; rowIndex++)
       {
         for (int colIndex = 0; colIndex &lt; colCount; colIndex++)
         {
         lowestInRow = x[rowIndex][0];  
         if (x[rowIndex][colIndex]&lt;lowestInRow)
               lowestInRow=x[rowIndex][colIndex];
         }
       System.out.println(lowestInRow + " is the lowest number in row " + (rowIndex+1) + ".");       
       lowestInRow = 0;
       }
      return lowestInRow;
  
  }
  
  ...
  </code></pre>