题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
import java.util.Scanner; import java.util.Arrays;
public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextLine()) { String str = sc.nextLine(); char[] strs = str.toCharArray();
Arrays.sort(strs);
System.out.println(strs);
}
}
}
// Too young to simple, sort like this problem that is to easy, we shouldn't think too much, just like this, sort of this array, and pass it