title: Reverse elements in an array
body: <p>I setup an  array and i would like to create a method that will  return an array with the elements in reverse. e.g.  if there are 10 slots then <code>array1[9] = 6</code> so then <code>array2[0] = 6</code>.<br>
  I suppose i have to return an array - how would i do that? <br>And i dont know how to reverse and add to another array.<br>
  Thank you! </p>
  
  <pre><code>        int[] arr = {43, 22, 1, 44, 90, 38, 55, 32, 31, 9};
          Console.WriteLine("Before");
          PrintArray(arr);
          Console.WriteLine("After");
          Reverse(arr);
  
           Console.ReadKey(true);
  
      }
  
      static int[] Reverse(int[] array)
      {
          for (int i = array.Length; i &lt; 1; i--)
          {
              int x = 0;
  
              array[i] = array[x++];
              Console.WriteLine(array[i]);
          }
  
         }
  
  
           static void PrintArray(int[] array)
      {
          for (int j = 0; j &lt; array.Length; j++)
          {
              Console.Write(array[j] + " ");
  
          }
          Console.WriteLine("");
  </code></pre>