public java.lang.StringBuilder delete(int start,int end){
  if (end > count) {
    end=count;
  }
  if (end == start) {
    return this;
  }
  if (end > start) {
    int length=count - end;
    if (length >= 0) {
      System.arraycopy(value,end,value,start,length);
    }
    count-=end - start;
    return this;
  }
  return this;
}

public java . lang . StringBuilder delete ( int start , int end ) { if ( end > count ) { end = count ; } if ( end == start ) { return this ; } if ( end > start ) { int length = count - end ; if ( length >= 0 ) { System . arraycopy ( value , end , value , start , length ) ; } count -= end - start ; return this ; } return this ; }
removes the characters in a substring of this stringbuffer . the substring begins at the specified start and extends to the character at index end - 1 or to the end of the stringbuffer if no such character exists . if start is equal to end , no changes are made .
