FileDocCategorySizeDatePackage
URLConstructorTest2.javaAPI DocExample426Thu Apr 03 15:15:32 BST 1997None

URLConstructorTest2

public class URLConstructorTest2 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", "/vendor.html");
      System.out.println(webURL);  
      ftpURL = new URL("ftp", "ftp.macfaq.com", "/pub");   
      System.out.println(ftpURL);
    }
    catch (MalformedURLException e)  {
      System.err.println(e);
    }