question: public void print ( CharSequence text ) throws IOException { int size = text . length ( ) ; int pos = 0 ; for ( int i = 0 ; i < size ; i ++ ) { if ( text . charAt ( i ) == '\n' ) { write ( text . subSequence ( pos , size ) , i - pos + 1 ) ; pos = i + 1 ; atStartOfLine = true ; } } write ( text . subSequence ( pos , size ) , size - pos ) ; }
target:  Print text to the output stream.