FileDocCategorySizeDatePackage
OReillyAliases.javaAPI DocExample590Sat Sep 09 19:53:54 BST 2000None

OReillyAliases

public class OReillyAliases extends Object

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


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