Package bank

Examples of bank.BankApplication


            System.exit(2);
        }
        System.out.println("done");
*/
       
        BankApplication ba = null;
        String[] accountNumbers = new String[clientsNames.length];
        try {
            ba = bah.create();
            System.out.println("Bank created or loaded");

            for (int i = 0; i < agencyNames.length; i++) {
                ba.createAgency(agencyNames[i]);
                System.out.println("Agency '" + agencyNames[i] + "' created");
            }
            for (int i = 0; i < clientsNames.length; i++) {
                ba.createClient(clientsNames[i], agencyNames[0]);
                System.out.println("Client '" + clientsNames[i] + "' created");
                accountNumbers[i] = ba.createAccount(clientsNames[i], agencyNames[0]);
                System.out.println("Account '" + accountNumbers[i] + "' created");
            }

            printBank(ba);
        } catch (Exception e) {
View Full Code Here

TOP

Related Classes of bank.BankApplication

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.