import java.util.ArrayList;import java.util.Collections;import java.util.Random;public class Draw { private ArrayListlist; public Draw(){ list = new ArrayList (); } public void deal(int num){ //向容器中添加奖券(使用循环) for (int i=0;i
本文共 337 字,大约阅读时间需要 1 分钟。
import java.util.ArrayList;import java.util.Collections;import java.util.Random;public class Draw { private ArrayListlist; public Draw(){ list = new ArrayList (); } public void deal(int num){ //向容器中添加奖券(使用循环) for (int i=0;i
转载于:https://www.cnblogs.com/panshilin/p/5521137.html