(a) Write a Java program the decomposes a well-formed URL input into its components: scheme (protocol),
hostname, port number, and the resource (le).
(b) Reconstruct the decomposed URL in part (a) into its equivalent one, but replace the hostname with its IP
address.
Tip: Have a closer look at the java.net.URL API and the IdentifyHostIP.java.txt from