This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LiveBank implements Serializable{ | |
private Map<Integer, Account> accounts; | |
private AtomicInteger next_account_number = new AtomicInteger(0); | |
public LiveBank() { | |
this.accounts = new HashMap<Integer, Account>(); // concurrent hashmap maybe | |
} | |
public Account createAccount() { |