1 package Demo511;
2
3 import java.util.ArrayList;
4
5 public class DemoSend {
6 public static void main(String[] args) {
7 Manager manager =new Manager("群主",1000);
8 Member one = new Member("成员A",0);
9 Member two = new Member("成员B",0);
10 Member three = new Member("成员C",0);
11 Member four = new Member("成员D",0);
12 Member five = new Member("成员E",0);
13
14 ArrayList redlist =manager.send(666,5);
15
16 one.receive(redlist);
17 two.receive(redlist);
18 three.receive(redlist);
19 four.receive(redlist);
20 five.receive(redlist);
21
22 manager.show();
23 one.show();
24 two.show();
25 three.show();
26 four.show();
27 five.show();
28 }
29 }
标签:JAVA,name,int,money,Member,案例,发红包,new,public
来源: https://www.cnblogs.com/Ssinoo/p/10848442.html