Create arraylist

Create an ArrayList and add three elements.

using System.Collections;

class Program
{
    static void Main()
    {
        ArrayList list = new ArrayList();
        list.Add("One");
        list.Add("Two");
        list.Add("Three");
    }
}

This entry was posted in C#.

Leave a Reply

Your email address will not be published. Required fields are marked *