this . count = buffer.length();
}
}
没有重新 new 内存空间,是共享的,这个时候首先想到的问题,如果 StringBuffer 变了, String 怎么办
继续看 StringBuffer 的操做,例如 deleteCharAt
public synchronized StringBuffer deleteCharAt( int index) {
if ((index < 0) || (index >= count ))
throw new StringIndexOutOfBoundsException();

