FileDocCategorySizeDatePackage
AllAddressesOfMicrosoft.javaAPI DocExample407Sat Sep 09 19:53:36 BST 2000None

AllAddressesOfMicrosoft

public class AllAddressesOfMicrosoft extends Object

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


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