import java.util.*; /* This class provides a service of depositing money into MoneyAccount objects * It is a simulation of some transactions consisting of deposits and withdrawls * */ public class BankingService{ public void doSomeTransactions(MoneyAccount anAccount){ Random randomNumberGenerator = new Random(); //deposit a random amount between 0 and $5000.00 into the MoneyAccount anAccount.deposit((double) randomNumberGenerator.nextInt(5000)); //withdraw a random amount between 0 and $4000.00 from the MoneyAccount anAccount.withdraw((double) randomNumberGenerator.nextInt(4000)); } } //end class BankingService