Question: Java: Write a program called passwordChecker.java that checks password strength. Your program should read an email address and a password from the user. The email:

Java:

Write a program called passwordChecker.java that checks password strength. Your program should read an email address and a password from the user.

The email:

  • Must end with "@werever.com".

The password:

  • Must contain 8 or more characters.
  • Must have at least one uppercase letter.
  • Must have at least one lowercase letter.
  • Must have at least one digit.
  • Must have at least one special character (!, @, &, or $)

Use the .endsWith(), .length(), .contains(), Character.isLowerCase(), Character.isUpperCase(), and Character.isDigit() methods.

In some of these requirements, you will need to use a for-loop to iterate through characters of a string.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!