I want a JAVA program. That gets the website name from the user and prints the IP Address of that website.
Get the inetaddress of the website and get the gethostaddress, something like
InetAddress address = InetAddress.getByName("www.queryhome.com"); System.out.println(address.getHostAddress());
Any opensource code would be a great help :)
Without system command :)