Question: (java) A complete email address is in the form of username@hostname.extension. Your program must get input of an email address as one string, and break

(java) A complete email address is in the form of username@hostname.extension. Your program must get input of an email address as one string, and break that one string down into its component parts. Assign the username to the variable of myUserName, the host name to the variable myHostName, and the extension to the variable myExtension. Display these three variable as the output in three lines. sample output should look like:

Sample input: ----------------- Enter one complete email address - cat@dog.com ------------------ Sample output: ----------------- user name is cat host name is dog extension is com -----------------

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!