import java.io.*;
class sortstring{
public static void main(String args[]) throws Exception{
String[] d = new String[100]; String temp;

DataInputStream dis = new
DataInputStream(System.in);
System.out.print(”Masukkan kata : “);
String x = dis .readLine();

int pj = x.length();
if(pj<100){
for(int i=0; i
d[i] = x.substring(i,i+1);
}

for (int i=0; i for (int j=i+1; j if(d[i].compareTo(d[j]) > 0){
temp = d[i];
d[i] = d[j];
d[j] = temp;
}
}
System.out.print(d[i]+” “);
}
} else System.out.println(”Sorry ye, nih program maksimal cmn ampek 100 huruf aje ^_^”);
System.out.println();
}
}