We need to write the function to check the password entered is correct or based on the following conditions..
a) It must have atleast one lower case character and one digit. b)It must not have any Upper case characters c) length should be b/w 5-12. d) It should not have any same immediate patterns like abcanan1 : not acceptable coz of an an pattern abc11se: not acceptable, coz of pattern 11 123sd123 : acceptable, as not immediate pattern adfasdsdf : not acceptable, as no digits Aasdfasd12: not acceptable, as have uppercase character Solution : package assignment1; import java.util.Scanner; /** * @author Snlkjha */ public class ValidPassword { /*It must have atleast one lower case character*/ public static boolean islower(String password){ char pass[]=password.toCharArray(); for(int i=0;i<pass.length;i++) if((int)pass[i]>=97 &&(int)pass[i]<=122) return true; return false; } /*It must not have any Upper case characters*/ public static boolean isup...