Ask Question
19 January, 08:08

Write a recursive function, replace, that accepts a parameter containing a string value and returns another string value, the same as the original string except with each blank replaced by an asterisk "*".

+4
Answers (1)
  1. 19 January, 10:26
    0
    You should state what language you want your answer to be in before you ask programming questions. Here is what you're looking for in Java:

    public static String replace (String str) {

    return str. replace (' ', '*');

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write a recursive function, replace, that accepts a parameter containing a string value and returns another string value, the same as the ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers