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 array1[9] = 6 so
array1[9] = 6
You can reverse an array by swapping elements from both ends of the array till you reach the middle.
for(int start = 0, end = arr.Length - 1; start < arr.Length/2; start++, end--) { swap(arr[start], arr[end]); }