Code example for Vector

Methods: setElementAtsize

0
        transactions.add(t); 
    } 
 
    public void replaceLastTransaction(Transaction t) 
    { 
        transactions.setElementAt(t, transactions.size() - 1); 
    } 
 
    public void setTransactions(Vector<Transaction> transactions) 
    { 
        this.transactions = transactions; 
    } 
 
    private Vector<Transaction> transactions; 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE