I have the following code:
foreach (string word in words)
//do stuff to each word, as go through the loop
My question is: i want to check inside the loop if the word = "car", and if it does, then i want to concatenate that word with the next word in the words array.
My code assumes all mentions of the word car is part of the word carpool, and some users enter it as two words.