src/org/kocakosm/pitaya/util/XArrays.java
public static long[] reverse(long... a)
	{
		int len = a.length;
		long[] copy = new long[len];
		for (int i = 0; i < len; i++) {
			copy[i] = a[len - i - 1];
		}
		return copy;
	}
public static long[] reverse(long... a)
	{
		int len = a.length;
		long[] copy = new long[len];
		for (int i = 0; i < len; i++) {
			copy[i] = a[len - i - 1];
		}
		return copy;
	}
public static long [ ] reverse ( long ... a ) { int len = a . length ; long [ ] copy = new long [ len ] ; for ( int i = 0 ; i < len ; i ++ ) { copy [ i ] = a [ len - i - 1 ] ; } return copy ; }
Returns a new array containing the same elements as the given one,
but in reverse order.

@param a the array to reverse.

@return the reversed array.

@throws NullPointerException if {@code a} is {@code null}.
Returns a new array containing the same elements as the given one but in reverse order .