Question: 4.3.7 Password Checker Please complete the code in Java 4.3.7: Password Checker Save Submit + Continue RUN CODE | TEST CASES ASSIGNMENT DOCS | GRADE
4.3.7 Password Checker
Please complete the code in Java

4.3.7: Password Checker Save Submit + Continue RUN CODE | TEST CASES ASSIGNMENT DOCS | GRADE | MORE 5 points Status: Not Submitted Write a program with a method called passwordCheck to return if the string is a valid password. The method should have the signature shown in the starter code. 1 public class Password 2-{ 3 public static void main(String[] args) 4 - { 5 // Prompt the user to enter their password and pass their string 6 // to the passwordCheck method to determine if it is valid. 7 } 8 9 public static boolean passwordCheck(String password) 10 { 11 // Create this method so that it checks to see that the password 12 // is at least 8 characters long and only contains letters 13 // and numbers. 14 15 } 16 The password must be at least 8 characters long and may only consist of letters and digits. To pass the autograder, you will need to print the boolean return value from the passwordCheck method. Hint: Consider creating a String that contains all the letters in the alphabet and a String that contains all digits. If the password has a character that isn't in one of those Strings, then it's an illegitimate password
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
