FileDocCategorySizeDatePackage
OReillyAliases.javaAPI DocExample615Sun Dec 12 10:51:46 GMT 2004None

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.");
    }