@@ -0,0 +1,579 @@
+package net.ihypo.user;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class UserGroup %7B%0A%09private List%3CUser%3E list;%0A%09private int total;%0A%09%0A%09public UserGroup()%7B%0A%09%09this.list = new ArrayList%3CUser%3E();%0A%09%09this.total = 0;%0A%09%7D%0A%09%0A%09public boolean addUser(int id,String name,String email)%7B%0A%09%09return list.add(new User(id, name, email));%0A%09%7D%0A%09%0A%09public User getUser(int id)%7B%0A%09%09int index = list.indexOf(new User(id));%0A%09%09if(index %3E= 0)%7B%0A%09%09%09return list.get(index);%0A%09%09%7D%0A%09%09return null;%0A%09%7D%0A%09%0A%09public List%3CUser%3E getList() %7B%0A%09%09return list;%0A%09%7D%0A%0A%09public int getTotal() %7B%0A%09%09return total;%0A%09%7D%0A%09%0A%7D%0A

create UserGroup