for(int i=0,j=arr.length-1;i<j;i++,j--) { int temp = arr[j]; arr[j] = arr[i]; arr[i] = temp; }
暂无评论,快来抢首评~
相关推荐