Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in JAVA validatePassword method Write a Java method called validatePassword that validates a password. It will return true if the password is valid, or false

in JAVA

validatePassword method

  • Write a Java method called validatePassword that validates a password. It will return true if the password is valid, or false if not valid. [1 point]
  • Using the Character wrapper class, verify the password in the following way
    • It must be at least 6 characters[1 point]
    • It must start with an upper case letter [1 point]
    • It must contain at least one digit.[1 point]
  • Write Javadoc style comments for your method [1 point]

main method

  • Ask the user to enter a password, and then pass this password to the validatePassword method. [1 point]
  • Print out "Valid password" if the method returns true, else print out "Invalid password" [1 point]

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

Oracle PL/SQL Programming Database Management Systems

Authors: Steven Feuerstein

1st Edition

978-1565921429

More Books

Students also viewed these Databases questions

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago

Question

=+1 What would you do if you were the IHR manager?

Answered: 1 week ago