Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

5. To determine the financial benefits and costs of the program.

Answered: 1 week ago