Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started