Question: String internetDomain is read from input and represents an internet domain. The internet domain has two fields, separated by character ' . ' Output the
String internetDomain is read from input and represents an internet domain. The internet domain has two fields, separated by character Output the last field of internetDomain. End with a newline.Ex: If the input is hostpeach, then the output is:peach
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
