title: Printing elements of an array in Reverse, but only one element will print
body: <p>I am trying to print the elements of an array forward and backwards using for loops. I have been able to print the elements forward however, when I attempt to print them backwards only one element will print.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>public class NineInts 
  {  
      public static void main (String args[])
      {
          int x;
          int i;
          int[] numbers = new int[] {10, 15, 19, 23, 26, 29, 31, 34, 38};
          for(x = 0; x &lt; numbers.length; ++x)
              System.out.print(numbers[x] + " ");
          for(i = numbers.length - 1; i &gt; 0; --i);
              System.out.print(numbers[i] + " ");
      }
  }
  </code></pre>
  
  <p>The second for loop only prints one element. I have tried a few things I have seen on this website about reverse array's but to no avail. </p>