FileDocCategorySizeDatePackage
AllAddressesOfApple.javaAPI DocExample414Sun Dec 12 10:51:38 GMT 2004None

AllAddressesOfApple

public class AllAddressesOfApple extends Object

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


    try {
      InetAddress[] addresses = InetAddress.getAllByName("www.apple.com");
      for (int i = 0; i < addresses.length; i++) {
        System.out.println(addresses[i]);
      }
    }
    catch (UnknownHostException e) {
      System.out.println("Could not find www.apple.com");
    }