Recently I met a bug:
sb.replaceRange(…), but indeed nothing happened.
After clicking into StringBuilder.replaceRange(), I found this method is extended on CharSequence, treating StringBuilder as an immutable, and then returns a new modified copy of it. And I think this is definitely most ones don’t expect.
Would you guys like to see a new standalone StringBuilder.raplaceRange(…) added into the stdlib?