Question: PasswordChecker.java Write a program called PasswordMethods.java that uses methods to check the strength of a password. Your program should read an email address and a

PasswordChecker.java

Write a program called PasswordMethods.java that uses methods to check the strength of a password. Your program should read an email address and a password from the user. Your program should contain the following methods, but feel free to add more.

  • isValidEmail(String email) - returns true if the email ends with "@utep.edu", and false otherwise.
  • isPasswordLong(String password) - returns true if the password contains at least 8 characters, and false otherwise.
  • containsUpperCaseLetter(String password) - returns true if the password contains at least one upper-case letter, and false otherwise.
  • containsLowerCaseLetter(String password) - returns true if the password contains at least one lower-case letter, and false otherwise.
  • containsDigit(String password) - returns true if the password contains at least one digit, and false otherwise.
  • containsSpecialCharacter(String password) - returns true if the password contains at least one special character ('!', '@', '&', or '$'), and false otherwise.

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!