public void addTransaction(Transaction t) {
public synchronized void addTransaction(Transaction t) {
    public void addTransaction(Transaction t) {        transactions.add(t);        this.currentBalance = currentBalance + t.getValue();    }