Then, when a returning ATM user enters their username and password, the customer collection can be searched for an existing username and corresponding password to validate the user's logon.If a new customer, the new ussername and password will be added to the customer collection.I'm not sure this is the best way to do it, but for now it works fine.I would love some suggestions on how to make it better.The file can be updated, written from the customer collection, after each customer logoff or before the ATM shuts down.After Button, the most used AWT component is Text Field.Can someone help me with my codes, I don't know how to use the if-else statement with mysql; Thanks!
So: connection.prepare Statement("select * from user_table where username = ? And don't use substitution pass parameters such as "select name from members where code =?
I also moved the null checking so that it is the first thing that is done, otherwise there will be a Returning after every check would yield a horrible user experience: imagine you enter a password that satisfies none of the constraints and than have to fix them one at a time, resubmitting in between.
I was instructed to create an bank account program that mimics an atm. If you're getting error messages, post them exactly (cut and paste).
New users get added to a file and I have to validate usernames and passwords from that same file. It is very difficult to read and fully understand so much code that has no description. If the code is not functioning as you'd like, post examples of what you want it to do and actual results from running the code that show how it does not agree with your specification, cut and past if possible.
Please describe it in detail - tell what the classes do, basic logic of methods etc. Since the assignment requires a file of customer usernames and passwords, you need to define the format of the file and then read it into a collection of some kind.