I’m going through the training material and have a question regarding the for each loop that is applied to array of strings.
As the loop goes through the array of strings it ‘write lines’ a phrase with each of the members of the array (which are all strings) each time it goes through the loop.
My question is why does the item variable which stores the string, have to be converted using .ToString to attach it to the rest of the string (why is item an object and not a string as we are talking about an array of strings, whats the point in defining the array as an array of strings in the first place?).
Sorry if this is a stupid question.