title: I need to take an array of integers and print them as a pyramid
body: <p>This is pretty simple, but I'm really not sure how to do it.</p>
  
  <p>I've got it so that it works, but it'll only work for an array of size 6, I've tried writing for loops for it but I'm not sure how to decrease the number of spaces each time around. Maybe I'm going at this wrong, but this is what I've got right now.</p>
  
  <pre><code>    public static void prettyPrint(int[] numbers) {
      System.out.println("   " + numbers[0]);
      System.out.println("  " + numbers[1] + " " + numbers[2]);
      System.out.println(" " + numbers[3] + " " + numbers[4] + " " + numbers[5]);
  
  }
  </code></pre>
  
  <p>where the array numbers is defined above as</p>
  
  <pre><code>    static int[] numbers = { 4, 3, 5, 6, 7, 8 };
  </code></pre>