title: Printing each elements of one row on separate lines?
body: <p>This is my question:
  Assume a two-dimensional array of ints called 'myInts'. Write a code snippet that will print each of the elements of row m on a separate line. You may assume that m is not out of bounds.</p>
  
  <p>This is the work I have done but I am not sure I am going in the right direction...</p>
  
  <pre><code>for (int i = 0; i &lt; myInts.length; i++) {
      for (int j = 0; j &lt; myInts[i].length; j++) {
          System.out.print (myInts[i][j]);
  
          if(j &lt; myInts[i].length - 1) {
              System.out.print(" ");
          }
      }
  
      System.out.println();
  }
  </code></pre>