Package net.sf.laja.example.account.behaviour

Examples of net.sf.laja.example.account.behaviour.SourceAccount.transferTo()


        System.out.println("=== before transaction ===");
        System.out.println(sourceAccount);
        System.out.println(destinationAccount);

        System.out.println("\n=== transfer 400 ===");
        sourceAccount.transferTo(destinationAccount, 400);

        System.out.println("\n=== after transaction ===");
        System.out.println(sourceAccount);
        System.out.println(destinationAccount);
    }
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.