Thursday, 28 June 2012

java program to find the ip address of google ,etc...... what ever u want :)

import java.net.*;
class google
{
public static void main(String args[])
{
try
{
InetAddress address=InetAddress.getByName("www.google.com");
System.out.println(address);
}
catch(UnknownHostException e)
{
System.out.println("Cound not find www.google.com");
}
}
}

No comments:

Post a Comment