Java password Program loops forever need help
<p>Why is this Just repeating forever even when I enter a length more than 6 characters?</p>

<pre><code>import java.util.Scanner;

class Password {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.println("Welcome please enter your username and password.");
        System.out.print("Username &gt;&gt;");
        input.nextLine();
        enterPassword();
        System.out.println("Successfully Logged In");
        }

    public static void enterPassword(){
        String password;
        Scanner input = new Scanner(System.in);
        System.out.print("Password &gt;&gt;");
        password = input.nextLine();
        checkPasswordLength(password);
        }


    public static void checkPasswordLength(String password){
        int length;
        length = password.length();
        while (length &lt;6){
            enterPassword();
            }
        checkPasswordLetter(password);
        }

    public static void checkPasswordLetter(String password){
        System.out.println("More checking here to be added");
        }
}
</code></pre>
