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