Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.net.URLEncoder;
public class Main {
public static String getURLEncoded(String s) {
String s1;
try {
s1 = URLEncoder.encode(s, "UTF-8");
} catch (Exception exception) {
return "";
}
return s1;
}
}