public class PasswordData
{
    public PasswordData (PasswordPolicy policy, String password)
    {
        _policy = policy;
        _pwd = password;
    }

    @Override
    public String toString ()
    {
        return _policy.toString()+"\n"+"Password: "+_pwd;
    }

    private PasswordPolicy _policy;
    private String _pwd;
}
@@ -146,24 +146,505 @@
 ord;%0A    %7D%0A%0A
+    public boolean valid ()%0A    %7B%0A        if (_pwd.indexOf(_policy.letter()) != -1)%0A        %7B%0A            char%5B%5D asArray = _pwd.toCharArray();%0A            int count = 0;%0A%0A            for (int i = 0; i %3C asArray.length; i++)%0A            %7B%0A                if (asArray%5Bi%5D == _policy.letter())%0A                    count++;%0A            %7D%0A%0A            if ((count %3E= _policy.minumum()) && (count %3C= _policy.maximum()))%0A                return true;%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A
     @Overrid

Update PasswordData.java