all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
12
Task/URL-encoding/Java/url-encoding.java
Normal file
12
Task/URL-encoding/Java/url-encoding.java
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
public class Main
|
||||
{
|
||||
public static void main(String[] args) throws UnsupportedEncodingException
|
||||
{
|
||||
String normal = "http://foo bar/";
|
||||
String encoded = URLEncoder.encode(normal, "utf-8");
|
||||
System.out.println(encoded);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue