To alter just one character in a stringbuilder, you can use the ____ method, which allows you to change a character at a specified position within a stringbuilder object
Answers
Answered by
0
barrier method ,which allows you to change a.lk
Answered by
1
StringBuilder builder = new StringBuilder();
//supposed you have filled the builder object with some data. you can alter the character by using following replace method.
builder.append(("xyz").replace('-', '_'));
//supposed you have filled the builder object with some data. you can alter the character by using following replace method.
builder.append(("xyz").replace('-', '_'));
Similar questions