Problem:
Question: Write a java program that validates new password. following these rules,
1- the password must be atleast 8 charachers long.
2 - The password must have at least one uppercase and one lowercase letter,
3 - The password must have at least one digit.
write a program that asks the user for a password then asks again to confirm it. if the password dont match or the rules not fulfilled, prompt again. The program should include a method that checks whatever a passowrd is valid
Please show your work step by step.