Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a java Write a program containing a method that checks to see if a String is a valid password. The password will be valid
Write a java Write a program containing a method that checks to see if a String is a valid password.
The password will be valid given the following requirements:
Make your Password characters or more
Less than is considered unsafe
ABC abc @$&
Use a mix of all character choices
Upper case, lower case, numbers & special characters
In the main method, you should call the password method at least times.
The first time, test it with your full name.
The second time, test it with your first name the last digits of your student
number a symbol of your choice.
Print the results of both tests to the console.
In the third call, you should accept a password from the user and report if it is valid.
Output Example:
Test string : George Vanoyen
Valid password? false
Test string : George&
Valid password? true
Please enter your own password:
iLoveJava
Valid password? true program containing a method that checks to see if a String is a valid password.
The password will be valid given the following requirements:
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