![]() ![]() We can print out a prompt for the user to enter in the length of their passwords and store their answer in an integer, just like what we did for the total number of passwords.According to security experts, 12-15 characters is a strong password length!.Step 2: Ask the user how many characters long they want their passwords to be. Hint: Make sure to use in.nextInt() to get the user input as an integer!.Finally let’s print out a prompt for the user to enter in the number of passwords they want generated and store their answer in an integer.Next we can make a Scanner variable by typing Scanner in = new Scanner(System.in). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |