URLDecoder Decode() Example

Returns the newly decoded String


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

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

import java.net.*;

public class Decode {

    public static void main(String[] args) {
        URLDecoder urd = new URLDecoder();
        //Returns the newly decoded String
        String s = urd.decode("www.roseindia.net");
        System.out.println("Newly decoded String is: " + s);
    }
}

Output of the program:-
 Newly decoded String is: www.roseindia.net

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

HOME | COPYRIGHT | CONTACT US