import java.io.*; import java.util.*; public class ChrSort { /** * @param args */ public static void main(String[] args) throws IOException{ // TODO Auto-generated method stub char[] c = new char[5]; int tmp; int i = 0; while((tmp=System.in.read())!=-1){ c[i++] = (char)tmp; if(i==c.length) break; } Arrays.sort(c);
import java.util.*;
public class ChrSort { /**
* @param args
*/
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
char[] c = new char[5];
int tmp;
int i = 0;
while((tmp=System.in.read())!=-1){
c[i++] = (char)tmp;
if(i==c.length)
break;
}
Arrays.sort(c);
for(i=0; i<c.length; i++){
System.out.print(c[i]+"\t");
}
}}