title: Error: Password validation "reached end of file while parsing"
body: <p>//This program validates passwords, must have 8 characters, 1 upper, 1 lower, 1 digit, once the password is validated the program should include a method that asks the user to reenter the password to make sure they match if the passwords does not match the program will ask the user to reenter the password until they do. I'm getting a "reached end of file while parsing" error. 
  Please help!</p>
  
  <pre><code>import java.util.Scanner;
  public class PassChecker2 {
  
     public static void main (String [] args) {
  
        String inputPassword;
  
        Scanner input = new Scanner(System.in);
        System.out.println(" Please enter your Password:");
        inputPassword = input.next();
  
        System.out.println(passminChecker(inputPassword));
        System.out.println("");
  
        main(args);
  
  
     }   
     public static boolean passminChecker(String password) 
     {
  
        if (password.length () &gt; 7)
        {
            if(passminChecker(password))
        {
            return true;
        }
        else
        {
            return false;
        }
       }
        else
        {
  
        System.out.println("Password must be at least 8 characters long.");
        return false;
        }
  
      }
  
     public static boolean checkerPass(String password)
     {
  
        boolean hasUpperCase = false;
        boolean hasLowerCase = false;
        boolean hasDigit = false;
        char c;
        for (int i = 0; i &lt; password.length(); i++)
        {
            c = password.charAt(i);
  
            if(Character.isUpperCase(c))
            {
               hasUpperCase = true;
            }
            else if(Character.isLowerCase(c))
            {
               hasLowerCase = true;
            }
            else if(Character.isDigit(c))
            {
               hasDigit = false;
            }
            if(hasUpperCase &amp;&amp; hasLowerCase &amp;&amp; hasDigit)
            {
                 return true;
            }
        else
        {
  
        System.out.println("Password is invalid must meet all requiremennts.");
        return false;
        }
       }
      }
  </code></pre>