title: how would I print a pattern then print the reverse pattern next to that pattern?
body: <p>Hey how would I print a pattern then print the reverse pattern next to that pattern? like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>1            1 2 3 4 5
  1 2          1 2 3 4
  1 2 3        1 2 3
  1 2 3 4      1 2 
  1 2 3 4 5    1
  </code></pre>
  
  <p>I know how to print both the patterns I just can't find out how to print the second pattern next to the first one.</p>
  
  <pre><code>package exc3;
  public class Exc3 {
  
      public static void main(String[] args) {
          int row = 1;
          int i = 0;
  
              for (i=1; i&lt;=row; i++){
                  System.out.print(i + " ");
  
                  if (i == row){
                      System.out.println();
                      i = 0;
                      row++;
                  }
  
                  if (row &gt; 5)
                      break;
  
              }
  
      }
  </code></pre>
  
  <p>that's the code I have for making the pattern but I don't think I need help with that just with putting the second pattern next to the first I have no idea how to do that</p>