/** * This is a tester class that creates a bank and then opens * accounts with the bank. */ public class BankTester{ public static void main(String[] args){ // Creates a new bank ArrayBank wellsFargo = new ArrayBank(); final int NUM_ACCOUNTS = 15; int[] accountIds = new int[NUM_ACCOUNTS]; // Opens accounts with the same initial balance of $100 for(int i = 0; i < NUM_ACCOUNTS; i++){ accountIds[i] = wellsFargo.openAccount("Fake Name" + i, 100.00); } // I am calling the toString() method of the bank class which prints // out all the bank accounts. In reality, you probably wouldn't want // a method in your bank class that does this for security reasons System.out.println("Here are the accounts:"); System.out.println(wellsFargo.toString()); } }