import java.util.*;import java.lang.*;import java.net.URLDecoder; class Main{ public static void main (String[] args) throws java.lang.Exception { String url = "http:\\/\\/a6.sphotos.ak.fbcdn.net\\/hphotos-ak-snc7\\/s2048x2048\\/582167_359167994154900_1489271360_n.jpg"; System.out.println("Before : " + url); System.out.println("decoded: " + URLDecoder.decode(url)); }}
Standard input is empty
Before : http:\/\/a6.sphotos.ak.fbcdn.net\/hphotos-ak-snc7\/s2048x2048\/582167_359167994154900_1489271360_n.jpg decoded: http:\/\/a6.sphotos.ak.fbcdn.net\/hphotos-ak-snc7\/s2048x2048\/582167_359167994154900_1489271360_n.jpg
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!