public class No_repeat3
{
public static void main(String[] args)throws NoSuchElementException
{
String str2 = "[1-5][1-4][1-5]{3}";//5不在千位
ArrayList<String> al = new ArrayList<String>();
ArrayList<String> alist = new ArrayList<String>();
ArrayList<String> al3 = null;
for (int i = 1; i <= 5; i++)
{
al.add(""+i);
}
Collections.sort(al);
System.out.println(al);
int max = 0;
while(true)
{
sop(jiaohuan(al));//1-5的数字随机交换
alist.add(jiaohuan(al));//将所有随机数存入alist中
al3 = singleElement(alist);//将alist中元素唯一化并存入al3
sop(singleElement(alist).size());//最大重复数