Hej!
http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html
Eksemplet herunder har jeg lige testet og det virker fint...
public class TestHtmlSource {
   
   public static void main(String[] args) throws IOException {
      URL yahoo = new URL("
http://www.yahoo.com/");
      URLConnection yc = yahoo.openConnection();
      BufferedReader in = new BufferedReader(
            new InputStreamReader(
                  yc.getInputStream()));
      String inputLine;
      while ((inputLine = in.readLine()) != null) 
         System.out.println(inputLine);
      in.close();
      
   }
}