Question: include 2 methods: validateHandle ( ) : accepts the entered handle and returns true if it is a valid handle validatePassword ( ) : accepts
include methods:
validateHandle : accepts the entered handle and returns true if it is a valid handle
validatePassword : accepts the entered password and returns true if it is a valid
password
Sample output :
Enter your handle:
Al
Invalid handle, enter another:
Alexa?
Invalid handle, enter another:
Alexa
Create a password:
heyGoogle!
Account created successfully.
Sample output :
Enter your handle:
lord voldemort
Invalid handle, enter another:
voldy
Create a password:
avadakadavra
Invalid password, enter another:
let's see does this work
Invalid password, enter another:
thislshouldwork#
Account created successfully.
IMPORTAN NOTE!!!: Do not use import.util.regex.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
