public void set ( String value , int idx ) { int rowOffset = getM ( ) ; for ( int i = 0 ; i < getN ( ) ; i ++ ) { if ( i < value . length ( ) ) { setChar ( value . charAt ( i ) , idx + ( rowOffset * i ) ) ; } else { setChar ( ' ' , idx + ( rowOffset * i ) ) ; } } }
Set one row specifying the row .