FileDocCategorySizeDatePackage
macfaq.javaAPI DocExample769Thu Apr 03 15:14:34 BST 1997None

macfaq

public class macfaq extends Object

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


    try {
      InetAddress macfaq = InetAddress.getByName("www.macfaq.com ");
      InetAddress spacecadet = InetAddress.getByName("spacecadet.cnet.com");
      if (macfaq.equals(spacecadet)) {
        System.out.println
          ("www.macfaq.com is the same as spacecadet.cnet.com");
      }
      else {
        System.out.println
          ("www.macfaq.com is not the same as spacecadet.cnet.com");
      }
    }
    catch (UnknownHostException e) {
      System.out.println("Host lookup failed.");
    }