JAVA Question:
I have to ask the user for their emal and determine if it’svalid or not. If the email is valid, then I display the domaini.e(hotmail.com). In order for it to be valid it must have thecharacters @ and . where the period is after the @ symbol. Pleasemake sure it matches the required outputs. Thanks!
Standard Input abc@google.com
Required Output
Enter your emailnValid emailnDomain: google.comnStandard Input support@info.dell.com
Required Output
Enter your emailnValid emailnDomain: info.dell.comnStandard Input xyz.mail
Required Output
Enter your emailnInvalid emailn
Expert Answer
An answer will be send to you shortly. . . . .