Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!