Java function to detect valid webpage
<p>I am trying to write a Java program that will load pages pointed to by valid links and report other links as broken. My problem is that the Java URL will download the appropriate page if the url is valid, and the search-engine results for the url if the url is invalid.</p>

<p>Is there a Java function that detects if the url resolves to a legitimate page . . . thanks very much, </p>

<p>Joel</p>
