how to reolace a character in string
Answers
Answered by
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
Physics,
6 months ago
English,
1 year ago
Math,
1 year ago
Psychology,
1 year ago
Chemistry,
1 year ago