Computer Science, asked by asthadwivedi, 1 year ago

how to reolace a character in string​

Answers

Answered by Zisha7
2

Answer:

Strings are immutable in Java. You can't change them. You need to create a new string with a character replaced. Turn the string into a char, replace the letter by index, then convert the array back into a string.

Similar questions