(int id, String details, int accountType)
| 6 | private Hashtable<Integer, User> users; |
| 7 | |
| 8 | public User addUser(int id, String details, int accountType) { |
| 9 | if (users.containsKey(id)) { |
| 10 | return null; |
| 11 | } |
| 12 | User user = new User(id, details, accountType); |
| 13 | users.put(id, user); |
| 14 | return user; |
| 15 | } |
| 16 | |
| 17 | public boolean remove(User u) { |
| 18 | return remove(u.getID()); |