题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
拆分成数组用sort就好
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String[] str = sc.nextLine().split("");
Arrays.sort(str);
for (int i = 0; i < str.length; i++) {
System.out.print(str[i]);
}
}
}