Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

inetaddress problem

 
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