Safe password verification. Write a static method that takes a string as an argument and returns true

Question:

Safe password verification. Write a static method that takes a string as an argument and returns true if it meets the following conditions, false otherwise:

• At least eight characters long

• Contains at least one digit (0–9)

• Contains at least one uppercase letter

• Contains at least one lowercase letter

• Contains at least one character that is neither a letter nor a number Such checks are commonly used for passwords on the web.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: