Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- String username;
- String password;
- System.out.println("Enter a username:");
- Scanner reader = new Scanner(System.in);
- username = reader.nextLine();
- System.out.println("please enter your password whitch is at least 8 characters");
- password = reader.nextLine();
- while(password.length() > 8)
- {
- System.out.println("if there is not 8 characters start again");
- System.out.println("Enter a password that is at least 8 characters:");
- password = reader.nextLine();
- }
- }
Add Comment
Please, Sign In to add comment