public void testXiPai(){ Random random=new Random(); List<Integer> randomList=new ArrayList<Integer>(); int k; Puke[] pk2=new Puke[54]; System.out.println("-------开始洗牌-------"); for(int i=0;i<54;i++){ do{ k=random.nextInt(54); }while(randomList.contains(k)); randomList.add(k); Puke temp=(Puke)pukeToSelect.get(randomList.get(i)); System.out.print(temp.huaSe+temp.dianShu+" "); pukeTemp.add((Puke)temp);//显示出错 }
添加回答
举报
0/150
提交
取消