题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
Arrays.sort
import java.util.Scanner;
public class Main {
//HJ34 图片整理
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
char[] chars = sc.nextLine().toCharArray();
Arrays.sort(chars);
StringBuilder sb = new StringBuilder();
for (char c : chars) {
sb.append(c);
}
System.out.println(sb);
}
}
}