Sunday, September 2, 2012

Replace Spaces

Write a method to replace all spaces in a string with ‘%20’.

Sample Input/Output:


String: this is a nice world!
replaced space with %20: this%20is%20a%20nice%20world!

No comments:

Post a Comment