// for 循环
for (int start = 0,end = len-1; start < end; start++,end--) {
int temp = a[start];
a[start] = a[end];
a[end] = temp;
}
// while循环
int start = 0;
int end = len-1;
while(start < end){
int temp = a[start];
a[start] = a[end];
a[end] = temp;
start++;
end--;
}