Is there a way to insert a character at multiple indices in one pass?

后端 未结 0 721
庸人自扰
庸人自扰 2020-12-29 05:32

I have a string and I want to insert a specific character, \\n for example, at many indices, which I have stored in a List. Is there an efficient way of modifying the string

相关标签:
回答
  • 消灭零回复
提交回复
热议问题