M
madhuripearl22
HI All,
I am the new member of this group, i want code for the following
requirements.
it's urgent to me. Please send the code.
Write a code for the password checking.
specifications are as follows:
Read the password from keyboard.
1. password length should be 4-12 characters.
2. The first character should be alphabet.
3. Patterns should not repeat in the given password(Eg. if the given
password is 'cucumber' this should not be accepted because, pattern
'cu' repeated.) that pattern contains any no. of characters( 2 or
more.)
eg. if the given password is like 'cu2cumber'. then it is accepted.
because in between two 'cu' patterns there is '2' so it is acceptable.
4. If the password is accepted shpuld print the msg as "accepted"
otherwise "rejected".
please implement it in core java only, don't use jdbc connection.
I am the new member of this group, i want code for the following
requirements.
it's urgent to me. Please send the code.
Write a code for the password checking.
specifications are as follows:
Read the password from keyboard.
1. password length should be 4-12 characters.
2. The first character should be alphabet.
3. Patterns should not repeat in the given password(Eg. if the given
password is 'cucumber' this should not be accepted because, pattern
'cu' repeated.) that pattern contains any no. of characters( 2 or
more.)
eg. if the given password is like 'cu2cumber'. then it is accepted.
because in between two 'cu' patterns there is '2' so it is acceptable.
4. If the password is accepted shpuld print the msg as "accepted"
otherwise "rejected".
please implement it in core java only, don't use jdbc connection.