title: How to format an array so it will look like a matrix when printing?
body: <p>How do you format an 2 dimensional array so that prints out a sort of matrix "Style".</p>
  
  <p>For example in this snippet of code array is getting two the product of two ,two dimensional int arrays.</p>
  
  <p>Say a 2x2 matrix that is like this</p>
  
  <pre><code>   59 96
  
     78 51
  </code></pre>
  
  <p>In the command prompt when printed out it ends up being displayed like this</p>
  
  <p>59 96 78 51</p>
  
  <p>how do you make it be display in the matrix type format of row and columns.</p>
  
  <p>2X2 is just an example in this program the 2d arrays have to be greater or equal to 50.</p>
  
  <pre><code>            else
             {
              int[][] array; 
             //this will hold the multiplied thing
  
              array=multiply(matrix,matrix2);
  
              System.out.println("this is the result of the multiplication");
              //print out the array
              for(int i=0; i&lt;row; i++)
              {
                  for( int j=0; j&lt; col2; j++)
                  {
                      System.out.print(array[i][j] + " \t");
  
                  }
              }   
  </code></pre>