for(int i=0;i<length;i++)
{
String temp = strArray[i];
while(i>0 && (Integer.parseInt(temp) > Integer.parseInt(strArray[i-1])))
{
strArray[i] = strArray[i-1];
i--;
}
strArray[i] = temp;
}
相关下载链接:
//download.csdn.net/download/qmzhai/2382388?utm_source=bbsseo