I am making a program on Java Swing that has a login . The thing is, I’m stuck on how to save the data (username and password) introduced by the user when signing up. Basically, the data will later be used to validate the user’s login. I’ve been suggested to use hashmaps or arraylist of strings; but I’m a beginner and I’ve read several pages and looked up video tutorials and have no idea how to save such data until i Know database. I would really appreciate some help; and please excuse any grammar mistakes, I’m not a native english speaker haha.
I tried using hashmaps but the data is erased when i exit the program
Malcom Munthali is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.