This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Need help with username and password validation  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey everyone. I was instructed to create an bank account program that mimics an atm. New users get added to a customers.txt file and I have to validate usernames and passwords from that same file. This is what I have so far.


Thanks any help appreciated
 
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is very difficult to read and fully understand so much code that has no description. Please describe it in detail - tell what the classes do, basic logic of methods etc. It will make analysis easy.

 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And describe what you need help with. What's not working? If you're getting error messages, post them exactly (cut and paste). 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.

Since the assignment requires a file of customer usernames and passwords, you need to define the format of the customer.txt file and then read it into a collection of some kind. 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. The customer.txt file can be updated, written from the customer collection, after each customer logoff or before the ATM shuts down.
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sid

Welcome to JavaRanch !!!

Just mention what errors you are getting in your application. Then only fellow members of this forum may help you in removing those errors.

~ abhay
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!