title: Searching specific rows in a multi-dimensional array
body: <p>I'm new to java programming and I can't wrap my head around one final question in one of my assignments.  </p>
  
  <p>We were told to create a static method that would search a 2-D array and compare the numbers of the 2-D array to an input number...so like this:</p>
  
  <p><em>private static int[] searchArray(int[][] num, int N){</em></p>
  
  <p>Now, the part what we're returning is a new one-dimensional array telling the index of the first number in each row that is bigger than the parameter variable N.  If no number is bigger than N, then a -1 is returned for that position of the array.</p>
  
  <p>So for example a multi-dimensional array named "A":</p>
  
  <p>4   5   6</p>
  
  <p>8  3  1</p>
  
  <p>7   8   9</p>
  
  <p>2   0   4</p>
  
  <p>If we used this method and did searchArray(A, 5) the answer would be "{2,0,0,-1)"</p>