0

[Challenge] Create something Fan

hello Every one i suggest Challenge For You input:hello john how are you output:hello%20john%20how%20are%20you

5th May 2018, 1:26 PM
Shkar ‌H Sardar
Shkar ‌H Sardar - avatar
2 Antworten
+ 5
String s = "hello john how are you"; System.out.print(s = s.replaceAll(" ", "%20"));
5th May 2018, 1:56 PM
Dev
Dev - avatar
+ 5
The challenge is a little bit vague and require more test cases. Are you looking for somebody to roll their own url encoder?
5th May 2018, 2:17 PM
Zephyr Koo
Zephyr Koo - avatar