Question: Complete this in Java. Thanks 1) [10 points] Write a program that validates entered username, password, email address, and phone number (for example, 313-456-7890). Password

Complete this in Java. Thanks

Complete this in Java. Thanks 1) [10 points] Write a program that

1) [10 points] Write a program that validates entered username, password, email address, and phone number (for example, 313-456-7890). Password must have at least one capital letter, one lowercase letter, one digit, one underscore character, and should contain at least 6 characters. Username might contain digits, letters (lowercase only), and underscore symbols, but no spaces in the name Note 1: You should use regular expressions for a validation. Note 2: To check if the password have at least one digit you can use "positive lookahead" statement: (-*[0-9]) Expected output Enter username: username 123 Enter password: 123-Wtyi Enter email address: ake.ematlwgmatl.com Enter phone number 111-333-4444 Valid username! Valid password Valid email address! Valid phone number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!