public void trimToSize() {if (n < array.length) {char[] aux = new char[n];System.arraycopy(array, 0, aux, 0, n);array = aux;}}

public void trimToSize ( ) { if ( n < array . length ) { char [ ] aux = new char [ n ] ; System . arraycopy ( array , 0 , aux , 0 , n ) ; array = aux ; } }
public virtual void TrimToSize(){if (n < array.Length){char[] aux = new char[n];System.Array.Copy(array, 0, aux, 0, n);array = aux;}}
