namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
ArrayList months = new ArrayList();
months.Add("march");
months.Add("april");
months.Add("may");
months.Add("june");
months.Add("july");
//before apply the clear method
Console.WriteLine("The elements in the arraylist are:" + months.Count);
months.Clear();
Console.WriteLine("After apply the clear method the arraylist is:" + months.Count);
}
}
}