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[] argsthrows 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"));
    }
}

Output of the program:-
 www.roseindia.net

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US