< prev index next >

src/java.base/share/classes/java/net/package-info.java

Print this page

        

@@ -129,11 +129,11 @@
  *    access the resource. From that URL, you can either get the
  *    {@link java.net.URLConnection} for fine control, or get directly the
  *    InputStream.
  * <p>Here is an example:</p>
  * <pre>
- * URI uri = new URI("http://java.sun.com/");
+ * URI uri = new URI("http://www.example.com/");
  * URL url = uri.toURL();
  * InputStream in = url.openStream();
  * </pre>
  * <h2>Protocol Handlers</h2>
  * As mentioned, URL and URLConnection rely on protocol handlers which must be
< prev index next >