public void set ( int idx , char chr ) { if ( idx < 0 ) throw new IndexOutOfBoundsException ( "idx < 0" ) ; if ( idx >= count ) throw new IndexOutOfBoundsException ( "idx >= buffer.length" ) ; buff [ idx ] = chr ; }
set the char at the specified index