题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
import java.util.Arrays; import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
while (sc.hasNextLine()) {
String inputStr = sc.nextLine();
char[] inputArr =inputStr.toCharArray();
Arrays.sort(inputArr);
System.out.println(new String(inputArr));
}
}
}