FileDocCategorySizeDatePackage
URLConstructorTest3.javaAPI DocExample434Thu Apr 03 15:15:34 BST 1997None

URLConstructorTest3

public class URLConstructorTest3 extends Object

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

  
    URL webURL, ftpURL;
  
    try {
      webURL = new URL("http", "www.macfaq.com", 80, "/vendor.html");
      System.out.println(webURL);  
      ftpURL = new URL("ftp", "ftp.macfaq.com", 21, "/pub");   
      System.out.println(ftpURL);
    }
    catch (MalformedURLException e)  {
      System.err.println(e);
    }