void testSort(){
List<String>strings=new ArrayList<String>();
String st="qwerasdfzxcvtyuighjkbnmopl1234567890QWERASDFZXCVTYUIGHJKBNMOPL";
Random random=new Random();
for(int i=0;i<10;) {
StringBuilder sb=new StringBuilder();
int k=random.nextInt(10);
for(int j=0;j<=k;j++) {
st.append(cr.charAt(random.nextInt(cr.length())));
}
if(strings.contains(sb.toString())) {
continue;
}
strings.add(sb.toString());
i++;
}
System.out.println("------排序前----------");
for (String string : strings) {
System.out.println(string);
}
Collections.sort(strings);
System.out.println("------排序后----------");
for (String string : strings) {
System.out.println(string);
}
}