Thursday, 28 June 2012

find ur System ip address by using java progrem :)

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

No comments:

Post a Comment