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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa4469f1f6c_54566fa446958bf5.jpg)
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
Get step-by-step solutions from verified subject matter experts
