question: public WordWrap append ( String s ) { s = collapseWs ( s ) ; String prependNext = s . endsWith ( " " ) ? " " : "" ; s = prepend + trimRight ( s ) ; prepend = prependNext ; BreakIterator bi = BreakIterator . getLineInstance ( ) ; bi . setText ( s ) ; int endOfLast = 0 ; int ii ; for ( ii = 0 ; ii < s . length ( ) ; ii ++ ) { if ( exceedsWidth ( endOfLast , ii ) ) { endOfLast = addLineBreak ( s , bi , endOfLast , ii ) ; } } if ( exceedsWidth ( endOfLast , ii ) ) { ii -- ; endOfLast = addLineBreak ( s , bi , endOfLast , ii ) ; } s = s . substring ( endOfLast ) ; out . append ( s ) ; return this ; }
target:  Appends the given string to the output.