The parseKeywords() function examines each character in the input string to decide if it is a whitespace or delimiter character. If it is not, the character is added to the current word.
And, if so, the current word, if any, is added to the list, and preparation is made for a new word. You also add the current word to the list when you reach the last character of the input string.
Leave a Reply
You must be logged in to post a comment.