URL manipulation
<p>I want to do a little manipulation with URLs.</p>

<p>It is required to add a sub domain in already created URL like shown below </p>

<p>Inputs</p>

<pre><code>String inputURL = "http://www.myhost.com";
String subdomain = "newlocation";
</code></pre>

<p>output</p>

<pre><code>String output = "http://www.newlocation.myhost.com";
</code></pre>

<p>I was thinking if there is any existing utility class that can do this for me. expert can have something to say.</p>

<p>Thanks for your help !</p>
