Question: how to transfer money from one account to another in java?
Answer: Add a method public void transfer(Account acct, double amount) to the Account class that allows the user to transfer funds from one bank account to another. If acct1 and acct2 are Account objects, then the call acct1. transfer(acct2,957.80) should transfer $957.80 from acct1 to acct2.