>>136
30じゃないけど、

swap( int[] array, int i, int j ){
 int tmp = array[i];
 array[i] = array[j];
 array[j] = tmp;
}

とかぐらいしか思いつかない。
他の方法あるなら知りたいっす >>30