Here is project: https://docs.google.com/open?id=1UrVRj9ag3y6WYSq1fX8XB6CWAOKnmnVaaHv8Sh0TPOtaCpOrnHN5ggnBg1P0 Here is my code: https://docs.google.com/document/d/1ekOeoYlugZJFPjA8tkt_lEKXW5iKiZEhPhqB6oHC9Mo/edit Question: How to make it to work for 10 users?
First suggestion is to make some variable hold an array 10 of Accounts. Then you will need to instrument a lookup function for accounts. Are you supposed to store the accounts outside of the program?
I would say in the ATM.java class you should create: Account[10] accounts = new Account[10]; for a start.
"Are you supposed to store the accounts outside of the program?" Yes
So do you need to save them to a file?
It must create objects in array for 10 users and then when the user enters pin identify to which user it belongs and print his information.
Problem is solved. Soon it will be available on my blog (waiting to get grade - if professor see it on my blog he could think I cheated :D). Contact me if you are interested in solution.
Join our real-time social learning platform and learn together with your friends!