Question: I need to create a Java application that checks to see if a password meets certain criteria. need to use the Character, String and/or StringBuilder

 I need to create a Java application that checks to seeif a password meets certain criteria. need to use the Character, Stringand/or StringBuilder classes and the application requires two classes. The first class

I need to create a Java application that checks to see if a password meets certain criteria. need to use the Character, String and/or StringBuilder classes and the application requires two classes. The first class will check a string and see if it meets the conditions required for a valid password. The second class will ask the user for a password and reply to the user indicating whether the password is acceptable 1. Create a class named PasswordChecker. This class will have a single constructor that is private and takes no arguments. The constructor will not do anything. The method will have no code in it. Because this class will not have a main method. It is designed to be reused by many applications. For this reason it will not have user supplied input or user output. The input to any method(s) will be arguments and the output(s) ill be return values 2. In the PasswordChecker class, create a public static method named checkPassword that accepts a String argument and returns a boolean value. This method should be static and should check the String argument and verify the String contains the following at least one uppercase letter at least one lower case letter at least one number at least one special character (not a number, space, or letter) have at least 8 characters. This means it must have 8 or more characters. The password cannot have any spaces in it. 3. The checkPassword method should return true if the String meets all the conditions specified above. The check Password method should return false if the Strings fails to meet any one of the conditions specified above 4. l may implement other methods in the PasswordChecker class if I wish. These methods will also need to be static. It is likely these methods will need to be private 5. Create a second class named Passwordlnput. This class will have the main method and will be used to test the code in the PasswordChecker class 6. In the Passwordlnput class, prompt the user to enter a password using an input dialog like the one below. Call the checkPassword method of the PasswordChecker class passing the input string

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!