ArrayList products = new ArrayList(); products.Add("Laptop"); products.Add("Smartphone");
ArrayList products = new ArrayList(); products.Add("Laptop"); products.Add("Smartphone"); products.Remove("Smartphone");
ArrayList products = new ArrayList(); products.Add("Laptop"); products.Add("Smartphone"); string laptop = (string)products[0];In conclusion, ArrayList is part of the System.Collections namespace, which provides a variety of collection classes for managing groups of objects. The ArrayList class is a dynamic array implementation that allows you to store elements of any type and resize the collection as needed.