Hi people, i am totally new to java and is still pretty much struggling with it now... please forgive me if i sound stupid from here on...

I am trying to come out with a simple java login console application using a flat file as data base.

I have done the registration of a User and details of the User are stored in ArrayList<Account> account. the details are then wrote into the text file account.txt

What i will like to do is to do the login screen and after the login, the following applications will all be linked with this particular user.

Anyone have any sample codes for reference?

Many thanks for help...

Create first the gui for login, using javax.swing. Then when you click the button you will have to read the file where the users are stored (if you know how to write into the file since you said that you are done with the registration part, you would be able to read it as well) And then check the given values with the ones from the file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.