URI Create() Example
Creates a URI by parsing the given string.
URIclass Create() method example. This example shows you how to use Create() method.This method Creates a URI by parsing the given string.
Here is the code:-
/**
* @Program that Creates a URI by parsing the given string.
* Create.java
* Author:-RoseIndia Team
* Date:-23-jun-2008
*/
import java.net.*;
public class Create {
public static void main(String[] args) throws Exception {
URI u = new URI("http://java.sun.com/j2se/1.3");
//Creates a URI by parsing the given string.
System.out.println(u.create("www.roseindia.net"));
}
} |
|