Need you help.
I want to use List and I don"t know how I make definition and fill it
Thanks
Sergey

ArrayList rockstars = new ArrayList();
List<String> rockstars = new List<String>();

These two lines are the "same".
In both cases you can say rockstars.Add("Elvis"); etc.
The generic List is to be preferred, it is stronger typed for one thing.

Thanks a lot

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.