how to get URL using relative path
<p>i has a URL:</p>

<pre><code>URL url=new URL("http://www.abc.com/aa/bb/cc/file.html");
</code></pre>

<p>and a relative path:</p>

<pre><code>String relativePath="../file2.html"; //maybe is "/file3.html"
</code></pre>

<p>i want to get <code>http://www.abc.com/aa/bb/file2.html</code> using variable <code>url</code> and <code>relativePath</code></p>

<p>how to do it?</p>

<p>thanks for your help :)</p>
