public char[] toCharArray(){
  if (size == 0) {
    return ArrayUtils.EMPTY_CHAR_ARRAY;
  }
  char chars[]=new char[size];
  System.arraycopy(buffer,0,chars,0,size);
  return chars;
}

public char [ ] toCharArray ( ) { if ( size == 0 ) { return ArrayUtils . EMPTY_CHAR_ARRAY ; } char chars [ ] = new char [ size ] ; System . arraycopy ( buffer , 0 , chars , 0 , size ) ; return chars ; }
copies the builder ' s character array into a new character array .
