Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String EncodeToUrl(String url) {
        url = url.replaceAll("%3F", "?");
        url = url.replaceAll("%3D", "=");
        url = url.replaceAll("%26", "&");
        url = url.replaceAll("%3A", ":");
        url = url.replaceAll("%2F", "/");
        url = url.replaceAll("%40", "@");
        return url;
    }
}