Write the replaceOne method. replaceOne(text, i, n, sub) replaces a segment of text of length n that
Fantastic news! We've Found the answer you've been seeking!
Question:
Write the replaceOne method. replaceOne(text, i, n, sub) replaces a segment of text of length n that starts at index i with the replacement string sub. (The length of sub is not necessarily the same as the length n of the segment to be replaced). replace One returns the modified text. Complete the method replaceOne below.
Question 1(a)
|
Related Book For
Posted Date: