java入门第三季 最后的作业,求指导
http://www.imooc.com/opus/resource?opus_id=3457 写的不好 欢迎大家指点
http://www.imooc.com/opus/resource?opus_id=3457 写的不好 欢迎大家指点
2017-04-24
public void daluan(){
for (int i = 0; i < pukelist.size(); i++) {
Random random = new Random();
PukeList p = pukelist.get(i);
pukelist.set(i, pukelist.get(random.nextInt(pukelist.size())));
pukelist.set(random.nextInt(pukelist.size()),p);
}中的
pukelist.set(i, pukelist.get(random.nextInt(pukelist.size())));
pukelist.set(random.nextInt(pukelist.size()),p);
这两句是什么意思,不是很看得懂,求解释,谢谢大哥
举报