Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started