public void put(final T element){
  if (this.index == this.buffer.length) {
    System.arraycopy(this.buffer,1,this.buffer,0,this.buffer.length - 1);
    this.buffer[this.index - 1]=element;
  }
 else {
    this.buffer[this.index++]=element;
  }
}

public void put ( final T element ) { if ( this . index == this . buffer . length ) { System . arraycopy ( this . buffer , 1 , this . buffer , 0 , this . buffer . length - 1 ) ; this . buffer [ this . index - 1 ] = element ; } else { this . buffer [ this . index ++ ] = element ; } }
store an element in the buffer
