Class URL
- Provided in the package java.net.
- Two available constructors:
- URL link = new URL(String address);
- URL link = new URL(URL base, String relativePath);
- address refers to a String object
- e.g.URL company = new URL("http://5390.com/")
- base refers to an initialized URL object
- relativePath refers to a String object
- e.g.new URL(company, "~pffung/index.html")
|
Facebook