simple log in java program
im in java programing 1 and anyone can help me with this
"make a sample log-in program which prompts if a user is a legitimate member or not. the existing users and thier corresponding passwords are as follows
Account name: jeff kenneth pucan / username: jeff / passwords: kent or felix
Account name: laila fortu / username:LAI / password: forio
Account name: dexter cruz / username: Dex / passwords: fort or light
Display "Welcome <Account name>" if the user enter a correct username and password. display "log-in failed" if otherwise.
Re: simple log in java program
We're not a homework service and nobody here is going to complete this for you.
You need to start the program and tell us where you get stuck, and giving us detailed information about the problem and any errors thrown.
A basic outline for the program would be as follows:
- Store details in a container of your choice
- Ask user to enter username and password using the Scanner class
- Loop through the container and check user inputs against the valid inputs
- If match if found: login, else: print error.
Come back when you've started it.