Welcome! and rules
Joel on Software
string collection or arraylist
i have a list of strings to be stored.
It depends how you define "better" and also how you want to get them back out again, i.e. via an indexer or via a collection key.
There is quite a few specific string collection classes. The question most certainly should be which string collection class is the most appropriate to your use...
You can iterate over an ArrayList in the same manner as an primitive array.
foreach (String s in joel)
Fog Creek Home