title: 2 dimensional arrays printing rows as columns java
body: <p>We have been asked to print this 2D Array with the columns as rows</p>
  
  <p>For example: the first column is 20,11,27 and it has to be printed:</p>
  
  <p>20 <br>
   11<br>
   27</p>
  
  <p>Here's my code so far and I can't even get it printing the columns normally, do any of you guys know what the problem is and if you can help me find a solution to the problem?</p>
  
  <pre><code>public class TwoDimensionalArrays
  {
  public static void main (String args[])
  {
      final int size1 = 2, size2 = 4, size3 = 5;
      int [][] numbers = {{20,25,34,19,33}, {11,17,15,45,26}, {27,22,9,41,13}};        
      int row = 0, col = 0;
  
          for(row = 0; row &lt;= size1; row++); //loops through rows
          {
              for(col = 0; col &lt;= size2; col++); //loops through columns
              {
                  System.out.println(numbers[row][col]);
              }
          System.out.print("\n"); //takes a new line before each new print
          }
      }
   }
  </code></pre>