Question: for java - ArrayLists use ArrayList Methods for this .add( ) .add( index #, ) .set( index #, ) .remove( index # ) .get( index

for java - ArrayLists

use ArrayList Methods for this

.add( )

.add( index #, )

.set( index #, )

.remove( index # )

.get( index # )

.clear()o

.size()

1.Create an ArrayList reference - myBank - which will manage Accounts.

a. Be sure you import the necessary code for ArrayLists

2.Add the following Accounts:

a. george, 700

b. derek, 66

c. james, 78

3. Print the number of Accounts in your bank - with an appropriate message (ex:We have## Accounts currently in the bank." )

4. Add the 2 Accounts:

a. steve, 765

b. bob, 564

Print the current state of your Bank now.

6. Deposit 122 into derek's Account

7. Withdraw 67 from james's Account

8.Place a new Account - minaj, 666 - between derek and james's Accounts.

9. Print the current state

10. Find and print the sum of all the Account balances.

11. Add the following Accounts - in the indicated location(s):

a. patrick, 345 - last

b. charles, 35 - second

c. howard 120- 4th slot

12. Deduct 56 from all Accounts with balances > 290

a. Count and print how many Accounts were affected

13. Print the status of the first 4 Accounts

14. Delete charle's account

15. Find the average account balance

16. Add mickey, 897

17. Add remi, 523

18.Deposit 34 into all accounts under 300

19.How many accounts have a balance greater than 220

20. Add raj, 322

21. Add blake, 988

22. Place moana, 500 into the 3rd position

23. Replace howard's account - with david , 83

24. Add cody, 24 after howard's Account

25. Print the final status of the bank ...

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!