题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
用api啊 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);
System.out.println(chars);
}
}
}