URLDecoder Decode1() Example

Returns the newly decoded String


URLDecoderclass Decode1() method example. This example shows you how to use Decode1() method.This method Returns the newly decoded String

Here is the code:-
/* 
 * @Program that Returns the newly decoded String
 * Decode1.java 
 * Author:-RoseIndia Team
 * Date:-23-Jun-2008
 */

import java.net.*;

public class Decode1 {

    public static void main(String[] argsthrows Exception {
        URLDecoder urd = new URLDecoder();
        String s = urd.decode"http://www.socs.uts.edu/url-primer.html"
"UTF-8");
        //Returns the newly decoded String
        System.out.println("Newly decoded String is: " + s);
    }
}

Output of the program:-
 Newly decoded String is: http://www.socs.uts.edu/url-primer.html

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

HOME | COPYRIGHT | CONTACT US