In Java there is methods in either StringBuffer() or StringBuilder() called insert() and deleteCharAt() I am very interested in understanding a little more how these two specific methods work. Or how one would program one using the standard java String methods. I reckon they are pretty simple methods to write yourself?
In Java there is methods in either StringBuffer() or StringBuilder() called insert() and deleteCharAt()
Share
In the Sun’s implementation both methods are delegated to
StringBuffer‘s parent classAbstractStringBuilder:AbstractStringBufferhas the following implementations:So, nothing special.