FileDocCategorySizeDatePackage
MyAddress.javaAPI DocExample383Sun Dec 12 10:51:44 GMT 2004None

MyAddress

public class MyAddress extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    try {
      InetAddress me = InetAddress.getLocalHost();
      String dottedQuad = me.getHostAddress();
      System.out.println("My address is " + dottedQuad);
    }
    catch (UnknownHostException ex) {
      System.out.println("I'm sorry. I don't know my own address.");
    }