/guava/android/guava/src/com/google/common/primitives/Doubles.java
double tmp = array[i]; for ( int i = fromIndex, j = toIndex - 1; i < j; i++, j--) {
for ( int i = fromIndex, j = toIndex - 1; i < j; i++, j-- ) { double tmp = array[i];
checkNotNull(array); reverse(array, 0, array.length); } public static void reverse(double[] array, int fromIndex, int toIndex) { checkNotNull(array); checkPositionIndexes(fromIndex, toIndex, array.length); <extra_id_0> array[i] = array[j]; array[j] = tmp; } } public static void rotate(double[] array, int distance) { rotate(array, distance, 0, array.length);