Decode url in java

Decode url in java

package com.w3spoint;
 
import java.net.URLDecoder;
 
public class URLTest {
  public static void main(String args[]){
	try {
            String decodedUrl = "https%3A%2F%2F826.a00.myftpupload.com";
            String url = URLDecoder.decode( decodedUrl, "UTF-8" ); 
            System.out.println(url);
        } catch (Exception e) {
            e.printStackTrace();
        }
  }
}

Output

https://826.a00.myftpupload.com
Content Protection by DMCA.com
Please Share