Contains Method In ArrayList Class
using System;
using System.Collections;
class ContainsMethod
{
static void Main()
{
ArrayList arrlist = new ArrayList();
arrlist.Add("Amit");
arrlist.Add("Mohit");
arrlist.Add(10);
bool result = arrlist.Contains(10);
if(result)
{
Console.WriteLine("Value exists");
}
else
{
Console.WriteLine("Value does not exists");
}
}
}
----------------------------------------------------------------------------------------------------------
Contains Method In ArrayList Class
Reviewed by Baljeet Singh
on
01:40
Rating:
![Contains Method In ArrayList Class](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhchUjHkCs04ROP73BOwLR5MUCMn8QVS3cawhK2vP8x5QXuW_6gsXyR1KMdoQk5tqPChIwi1arTtFbNnwo22rFdfbBZqAERNb8jCMk4kgT4NaLWJdlf8l9ientRzpQFvbBI0lissWkeLS6a/s72-c/img.png)
No comments: