Question: In Java write a program that satisfies the following conditions for someone creating a password: The password should be at least 8 characters long Digits

In Java write a program that satisfies the following conditions for someone creating a password:

The password should be at least 8 characters long

Digits should not be next to other digits

Letters should not appear in sequential order such as AB or de

If the passwords meets the requirement display true and if not display false

Write a program and name it CheckPassword.java

EX1:

input: "1234"

output: false

EX2:

input: "acegAE1F:

output: True

The following is the start of the code:

public class CheckPassword{

public static void main(String args []) {

}

}

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!