retrieve an top level domain from an url using java
<p>i need to retrieve an top level domain from the url means 
ex</p>

<pre><code>http://www.google.com
</code></pre>

<p>this can be attained by </p>

<pre><code>url.getHost();
</code></pre>

<p>but the thing is in case i have some sub domain with url </p>

<p><a href="http://example.google.com" rel="nofollow">http://example.google.com</a></p>

<p>it extracts <code>example.google.com</code> i need to extract the <code>google.com</code> alone is there is any way to extract it...</p>
