0
/ 50
Write a function in Java that implements the following logic: Given a string str
and a non-empty word
, return a version of the original...
Write a function in Java that implements the following logic:
Given a string str
and a non-empty word
, return a version
of the original string where all chars have been replaced by
pluses (+
), except for appearances of the word
which
are preserved unchanged.
Your feedback will appear here when you check your answer.