1086: ASCII码排序(多实例测试)
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);char []ch=new char[5];while(cin.hasNext()){
String s=cin.next();for(int i=0;i<3;i++) ch[i]=s.charAt(i);Arrays.sort(ch,0,3);for(int i=0;i<3;i++)System.out.printf("%c ",ch[i]);System.out.println();}}
}