Answered step by step
Verified Expert Solution
Link Copied!

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 8 characters or more
Less than 8 is considered unsafe
ABC abc 123@$&
Use a mix of all 4 character choices
Upper case, lower case, numbers & special characters
In the main method, you should call the password method at least 3 times.
The first time, test it with your full name.
The second time, test it with your first name + the last 4 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 1: George Vanoyen
Valid password? false
Test string 2: George1234&
Valid password? true
Please enter your own password:
iLoveJava2024!
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:
image text in transcribed

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

Visualizing Health And Healthcare Data Creating Clear And Compelling Visualizations To See How Youre Doing

Authors: Katherine Rowell ,Lindsay Betzendahl ,Cambria Brown

1st Edition

1119680883, 978-1119680888

More Books

Students also viewed these Databases questions

Question

When do glaciers deposit their loads of sediment?

Answered: 1 week ago

Question

Have you laid out the information as clearly as possible?

Answered: 1 week ago

Question

What's the mean and standard deviation?

Answered: 1 week ago