Error in retrieving the data..
suppose i write the code as.....
import java.net.*;
import java.io.*;
public class Tut {
public static void main(String[] args) throws Exception {
URL yahoo = new URL("http://www.yahoo.com/");
BufferedReader in = new BufferedReader(
new InputStreamReader(
yahoo.openStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
}
It catches an exception!! it does not retrieve the data....
can ne1 plz solve this problem.... the code writer insists on the code working!! but it doesnt someone please help me out....

