Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

inetaddress problem  RSS feed

 
pawar rahul
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i used ,
InetAddress address = InetAddress.getByName("google.com");
System.out.println(address);

it did not give any output by threw UnknownHostException though my computer is connected to the internet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!