Code example for ArrayList

Methods: addAll

0
	@Override 
	public void updateTransactions(Account account, Urllib urlopen)
			throws LoginException, BankException { 
		super.updateTransactions(account, urlopen);
 
		ArrayList<Transaction> transactions = new ArrayList<Transaction>();
 
		transactions.addAll(updateMonthTransactions(account, urlopen, false));
 
		//Get last months' transactions 
		Matcher oldTransactionMatcher = reOldTransactions.matcher(response);
		if(oldTransactionMatcher.find()) {
			transactions.addAll(updateMonthTransactions(account,urlopen,true));
		} 
		 
		account.setTransactions(transactions);
 
	} 
 
	private ArrayList<Transaction> updateMonthTransactions(Account account,
			Urllib urlopen, boolean oldTransactions) throws BankException {