I’m looking to split a List of Strings up as i iterate throught the list imagine the following as the List.
["StringA.StringB.StringC"]["StringA.StringB.StringC"]["StringA.StringB.StringC"]["StringA.StringB.StringC"]
So i want to iterate through the list pull out each string ("StringA.StringB.StringC")
Then want to seperate by the "." and assign StringA to a String variable – String B to one and String C. Perform some work and move on to the next.
Any ideas how i can do this?
This is a fairly simple task. Just use a foreach to iterate through the list, and then split the string on the
.character.The variable
splitStringwill have a length of 3.