Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

include 2 methods: validateHandle ( ) : accepts the entered handle and returns true if it is a valid handle validatePassword ( ) : accepts

include 2 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 1:
Enter your handle:
Al.
Invalid handle, enter another:
Alexa?
Invalid handle, enter another:
Alexa
Create a password:
heyGoogle!
Account created successfully.
Sample output 2:
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.*
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago