package com.practice1;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
public class CollectionSortTest {
Random random = new Random();
List ls = new ArrayList();
public void createList() {
int k=0;
String str="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
//生成10条随机字符串
while(k<10) {
//定义每个字符串的随机长度
int strLong;
do {
strLong = random.nextInt(10);
}while(strLong==0);
//随机生成strLong长度的char
StringBuffer sb = new StringBuffer();
for(int i=0;i