the code runs but it doesn't exactly read the new password and output comes as:
incorrect password . Please set a correct password
incorrect password . Please set a correct password
incorrect password . Please set a correct password
The password was Test.Please enter a correct new password
password starts with underscore or any case alphabet.//----------->this is the part that is bugging me
i'm kinda new to programming ...please help
i'm supposed to:
Imagine that the password to sign in to some computer is “John”. Write a program that prompts the user to enter a password to login to this imaginary computer. If the user enters the correct password then notify the user and terminate the program. Should the user get the password incorrect three times in a row then inform the user of the current password and allow the user to set a new password. Check the new password so that it satisfies these modified
java identifier rules:
1. The password may have any number of characters between 1 and 20, inclusive.
2. The password may start with an underscore “_” or any letter of the alphabet
3. The password may be any combination of upper and lower case letters.
4. The password consists only of numbers, English alphabet letters, and the underscore character.