Comparing if 2 URLs have the same original target
<p>I have two urls as Java Strings suppose "youtube.com" and "goo.gl/ur2l"  and I want to make a function </p>

<pre><code>boolean isSame(String url1, String url2)
</code></pre>

<p>which returns weather both urls direct to the same url at the end or not.
how would that be implemented in java ?</p>
