Question: Create a new Java Project. Create a class named ValidatePassword Create an application to verify a new password. Prompt the user. Requirements for the password
Create a new Java Project.
Create a class named ValidatePassword
Create an application to verify a new password. Prompt the user.
Requirements for the password are below in the output. Display an error message if the user did not follow the requirements (see the two sample outputs)
Output (two different runs) :
Enter a new password. Must have the following: 6 characters long 1 uppercase 1 lowercase 1 digit >> 12e
The password did not have the following:
at least 6 characters at least 1 uppercase letter
__________________________
Enter a new password. Must have the following: 6 characters long 1 uppercase 1 lowercase 1 digit >> R14xtt
Valid password
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
