Reference no: EM132210383
Question :
Write a program in Java that validates emoloyees reading from a txt file. The username and passwords I would like to be used are the ones with username and passowrd.
Don't mess with the three digits, firstname ,middle name, and last name.:
This is the txt file:
000, John, S, Sanchez, Johnusername-passoword1 001, Joseph, W, William, Josephusername-passoword2 002, Alan, W, Wake, Alanusername-passoword3 003, Julia, B, Beans, Juliausername-passoword4 004, Anderson, M, McArthur, Andersonusername-passoword5
The output should look like this:
What is your username?
(userinput) Johnusername
What is your password?
(userinput) password1
(if all mathes print out) Successfully logged in
(if not all matches print out) error try again