Ask Question
5 June, 20:48

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 "*".

+1
Answers (1)
  1. 6 June, 00:17
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers