question: public static Vector tokenizeString ( String source , char separator ) { Vector tokenized = new Vector ( ) ; int len = source . length ( ) ; boolean lastSeparator = false ; StringBuilder buf = new StringBuilder ( ) ; for ( int iter = 0 ; iter < len ; iter ++ ) { char current = source . charAt ( iter ) ; if ( current == separator ) { if ( lastSeparator ) { buf . append ( separator ) ; lastSeparator = false ; continue ; } lastSeparator = true ; if ( buf . length ( ) > 0 ) { tokenized . addElement ( buf . toString ( ) ) ; buf = new StringBuilder ( ) ; } } else { lastSeparator = false ; buf . append ( current ) ; } } if ( buf . length ( ) > 0 ) { tokenized . addElement ( buf . toString ( ) ) ; } return tokenized ; }
target:  Breaks a String to multiple strings.