• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in reading URL  RSS feed

 
nishant vats
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying dis code

URL url = new URL("http://www.yahoo.com/");
URLConnection conn = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));

but getting exception as
java.net.UnknownHostException: www.yahoo.com

Is there some error in code
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!