subject

Having a secure password is a very important practice, when much of our information is stored online. Write a program that validates a new password, following these rules: The password must be at least 8 characters long. The password must have at least one uppercase and one lowercase letter The password must have at least one digit. Write a program that asks for a password, then asks again to confirm it. Next, write a method: public static void check(String pw1, String pw2) If the passwords don’t match or the rules above are not fulfilled, print a message that the password is not valid. Here are some tips for checking the password: Use .equals() to compare two strings Use a loop to check each character of the password. In the loop, use Character. isDigit() to check if a character is a digit or not. Use Character. isUpperCase(nextChar) and Character. isLowerCase(nextChar) to check if a character is upper or lower case (where nextChar is the next current character in your password string). You could use flag variables to set if a digit, upper, and lowercase letter are found.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
Your business be in google top rank.more the rank more the business leads.for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services,online seo expert services,
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. which step can possibly increase the severity of an incident? a. separating sensitive data from non-sensitive data b. immediately spreading the news about the incident response plan c. installing new hard disks d. increasing access controls
Answers: 2
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
You know the right answer?
Having a secure password is a very important practice, when much of our information is stored online...
Questions
question
Mathematics, 07.12.2020 01:00
question
History, 07.12.2020 01:00
question
Mathematics, 07.12.2020 01:00
question
Mathematics, 07.12.2020 01:00
question
Mathematics, 07.12.2020 01:00
Questions on the website: 13722361