public Transaction removeLastTransaction() {
public synchronized Transaction removeLastTransaction() {
    public Transaction removeLastTransaction() {        int last = transactions.size() - 1;        Transaction t = (Transaction)transactions.remove(last);        this.currentBalance = currentBalance - t.getValue();        return t;    }