赞
踩
- <span style="font-size:18px;">List<User> totalList = new ArrayList<User>();
- for (int i = 0; i < 3; i++) {
- User User = new User();
- User.setAwardId(aid);
- User.setAwardNum(1);
- totalList.add(User);
- }
- List<User> list = new ArrayList<User>();
- for(int i=1;i<=2;i++){
- <span style="white-space:pre"> </span>list.addAll(totalList)
- }</span>
- <span style="font-size:18px;">List<User> totalList = new ArrayList<User>();
- for (int i = 0; i < 3; i++) {
- User User = new User();
- User.setAwardId(aid);
- User.setAwardNum(1);
- totalList.add(User);
- }
- List<User> list = new ArrayList<User>();
- for(int i=1;i<=aum;i++){
- for (int j = 0; j < totalList.size(); j++) {
- User user = totalList.get(j);
- User us =new User();
- BeanUtils.copyProperties(user, us);
- list.add(us);
- }
- }</span>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。