冒泡:for (int i = 0;i<j;i++){ for (int k = i+1;k<j;k++){ //compare and swap }}