Write a Java program for the login screen (which is different from registration screen). When you login,
Question:
Write a Java program for the login screen (which is different from registration screen).
When you login, user name and password must hate been created from previous registration or created earlier in username.txt, password.txt etc. (Say for example, you can have usemame.txt with Alan as the first user name in usemame.txt and PassAlan as the first password in password.txt, or you can have a text file up.txt where the first line consists of a word Alan followed by spaces and then the second word AlanF'ass etc.).
If the user name / password pair do not pass the validation check (either user name is invalid, or does not exist, or password is invalid or does not exist), you'll output "either user name or password is invalid", otherwise, you'll output: "Alan is logged in" etc.