Package corba.common

Examples of corba.common.Account.deposit()


        // Test the method Bank.get_account()
        System.out.println("Retrieving account called \"Account3\"");
        Account account3 = bank.get_account("Account3");
        System.out.println("Current balance for \"Account3\" is " + account3.get_balance());
        System.out.println("Depositing 10.00 into account \"Account3\"");
        account3.deposit(10.00f);
        System.out.println("New balance for account \"Account3\" is " + account3.get_balance());
        System.out.println();

        // Test the method Bank.get_epr_account()
        System.out.println("Retrieving account called \"Account4\"");
View Full Code Here


        // Test the method Bank.get_epr_account()
        System.out.println("Retrieving account called \"Account4\"");
        Account account4 = bank.get_account("Account4");
        System.out.println("Current balance for \"Account4\" is " + account4.get_balance());
        System.out.println("Withdrawing 150.00 into account \"Account4\"");
        account4.deposit(-150.00f);
        System.out.println("New balance for account \"Account4\" is " + account4.get_balance());
        System.out.println();

        bank.remove_account("Account1");
        bank.remove_account("Account2");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.