//Account Manager public class AccMan{ BankDataBase dataBase; int loc = 0; public AccMan() { dataBase = new BankDataBase();//creates database to set up accounts } public boolean findAcc(String n, int p)//function to see if name is in database { for(int i = 0; i < dataBase.accArray.length; i++) { if(dataBase.accArray[i].getName().equals(n)) { if(dataBase.accArray[i].getPin() == p) { loc = i; return true; } } } return false; } public String updateAcc(boolean deposit, double value, int type)//tells accounts to update { return dataBase.accArray[loc].update(deposit, value, type); } public String outputAcc()//outputs array and returns string of output { String output = ""; for(int i = 0; i < dataBase.accArray.length; i++) { output += dataBase.accArray[i].toString(); } return output; } }