public class TransferUtils extends Object
|Modifier and Type||Method and Description|
This method checks whether the sender has enough money in her bank account to transfer the given amount to the recipient.
public static TransferResult checkBalanceAndTransfer(Account sender, Account recipient, int amount)
sender,- the Account instance of the sender
recipient,- the Account instance of the recipient
amount,- the amount the sender is trying to send to the recipient
Copyright © 2018. All rights reserved.