public static boolean checkPwd(String pwd){
if(pwd.matches("^[A-Za-z0-9]{8,32}$")){
Pattern numPattern =Pattern.compile("[0-9]+");
Pattern lowerPattern =Pattern.compile("[a-z]+");
Pattern upperPattern =Pattern.compile("[A-Z]+");
if(numPattern.matcher(pwd).find() && lowerPattern.matcher(pwd).find() && upperPattern.matcher(pwd).find()){
return true;
}
}
return false;
}