How to Reverse Items in ArrayList?

 Posted by vishalneeraj-24503 on 12/25/2013 | Category: ASP.NET Interview questions | Views: 1039 | Points: 40
Answer:

We can use ArrayList Reverse() method to Reverse items in ArrayList.

For Example:-

System.Collections.ArrayList arr_list = new System.Collections.ArrayList();

arr_list.Add("vishal");
arr_list.Add("rajesh");

arr_list.Reverse();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response