URL Encoding 1 (Replace Spaces)
You are building a custom URL encoding tool. One of the functions that is necessary is to replace spaces in a string. Write a method that takes a string to be used in a URL and replace its spaces with a second argument that is passed in ("+" or "%20") and then return the new string (without using the replace all function in the String class.)

Answer

Answers are hidden from search engines.
strings coding language=java