Question: create a new Java application called PasswordChecker (without the quotation marks) that gets a String of a single word from the user at the command
create a new Java application called "PasswordChecker" (without the quotation marks) that gets a String of a single word from the user at the command line and checks whether the String, called inputPassword, conforms to the following password policy.
The password must:
Be 3 characters in length
Include at least one uppercase character
Include at least one digit
If the password conforms to the policy, output "The provided password is valid." Otherwise, output "The provided password is invalid because it must be three characters in length and include at least one digit and at least one uppercase character. Please try again." A loop is not needed for this program.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
