Name: rlT66838 Date: 08/13/97
Hello folks,
I think a method StringBuffer.setSubstring()
would be useful.
public void setSubstring(int index, String substring)
would replace the contents of the StringBuffer on
which the method is called with the contents of
the String argument, starting at the position
indicated by the "index" argument.
It would have to check for bounds and for
current capacity.
I find I often could use something like this.
======================================================================
- duplicates
-
JDK-4120694 StringBuffer should have more functionality
-
- Closed
-