code: public static <T> T[] reverseArray(T[] arr) {
  		for (int left = 0, right = arr.length - 1; left < right; left++, right--) {
  			T temp = arr[left];
  			arr[left] = arr[right];
  			arr[right] = temp;
  		}
  		return arr;
  	}
docs: Reverses the entries of a given array.
  
  @param <T>
  Type of array elements
  @param arr
  Array to reverse
  @return The same array in reverse order