- 1)字符串变成字符数组。
- 2)对数组排序,选择
- 3)将排序后的数组变成字符串。
public class Train5 {
public String SortString(String str){
String resultString = "";
char minNum = ' ';
int indexMinNum =
public class Train5 {
public String SortString(String str){
String resultString = "";
char minNum = ' ';
int indexMinNum =