If I have an ArrayList of bank account objects, how can I add and remove things from the object specified, such as checking and savings accounts? My bank account objects will include: private String firstName; private String lastName; private String username; private String password; private int idNum; private double checkingBal; and private double savingsBal. Is there a simple way to do this without having to create a new bank account object for that member that wants to add or remove an account?
I've looked online for a while now but I haven't found anything applicable to this kind of scenario. I'm only required to create a simple bank app that has a login page, member registration page if they don't have an account, and a member menu that pops up once logged in that allows the user to deposit, withdraw, add an account, delete an account, view an account, and logout. I'm open to other ideas for handling accounts if there are any you'd like to suggest.