Do not use regular expressions in your solution for this exercise.Write a program that checks to see if an input password is valid or not. In this exercise, a valid password has the following characteristics:
Your class must contain the following method:public static String checkPassword(String input)
This method receives a possible password as input and returns only the String“OK” if the password is valid. If the password is not valid then you can return the reason(s) for that as the return value. This is not a part of the requirements, however, and you don’t need to do that. You can simply return null for an invalid password.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here