-6
A - an array containing the list of numbers
numItems - the number of numbers in the list
for i = 0 to numItems - 1
for j = i+1 to numItems
if A[i] > A[j]
// Swap the entries
Temp = A[i]
A[i] = A[j]
A[j] = Temp
End If
Next j
Next i\
可以comeone将它转换为java给我吗? 我试过了,但无法弄清楚。Java选择排序
反正你很近...应该很容易查找... – NominSim
http://stackoverflow.com/questions/10852522/selection-sort-for-java –