BankAccount and Bank

Part 1

Write a BankAccount class that has an int account number and a double balance for instance variables. Overloaded constructors take either an account number and no balance (in which case the balance is initialized to 0), or an account number and a balance. Then write four methods for the class:

Part 2

Write a Bank class that uses an ArrayList to keep track of a series of BankAccount objects. The constructor creates a Bank instance with no bank accounts to begin with. Methods to write for this class include: