20212223242526
} else if (system.accounts.containsKey(id)){ return system.accounts.get(id); } else throw new AccountDoesNotExistsException(id); }
29303132333435
} if(account.getPerson().getId().equals(personId)) { return account; } } throw new AccountDoesNotExistsException(personId); }
14151617181920
for (Account account : system.accounts.values()) { if(account.getName().equals(accountName)) { return account; } } throw new AccountDoesNotExistsException(accountName); }