figure string with three words figure string with varying number of white space delimiting the words of the previously listed index keeps track of the current index we are at in the stringwordcount is an integer that keeps track of the number of words we have encounteredand finally inw ord is boolean flag that denotes whether or not at the present time we are within word if we are not currently hitting white space we are in wordthe opposite is true if at the present index we are hitting white space what denotes wordin our algorithm each word is separated by one or more occurrences of white space we don' take into account any particular splitting symbols you may usee in net string split can take char (or array of charactersthat determines delimiter to use to split the characters within the string into chunks of stringsresulting in an array of sub-strings in figure we present string indexed as an array typically the pattern is the same for most wordsdelimited by single occurrence of white space figure shows the same stringwith the same number of words but with varying white space splitting them