/**** * * This program does a bit of testing of the BankAccountManager class. * */ public class BankAccountManagerTester { public static void main(String[] args) { BankAccountManager bam = new BankAccountManager(); /* * Add some accounts. */ bam.add(new BankAccount("Wells Fargo", 1110.25)); bam.add(new BankAccount("Credit Union", 550.10)); bam.add(new BankAccount("Cayman Islands", 10560185.00)); /* * Print the total value of all accounts. */ System.out.println("Total value of all accounts = $" + bam.getTotalValue()); /* * Print a list of all the accounts. */ System.out.println("\nList of all accounts:\n" + bam); } }