/**
* 双指针-数组反转
*
* @param array
* @return
*/
public static int[] coverArray(int[] array) {
if (array == null && array.length == 0) {
return array;
}
int j = array.length - 1;
for (int i = 0; i < j; i++, j--) {
array[i] = array[i] + array[j];
array[j] = array[i] - array[j];
array[i] = array[i] - array[j];
}
return array;
}