Click to See Complete Forum and Search --> : ArrayList?


swathi2002
June 25th, 2002, 04:58 PM
Can anyone explain me What is ArrayList and what for it is used?

Thanks in advance.

cocolovevienna
June 25th, 2002, 07:15 PM
look for answer from SDK

V. Lorenzo
June 26th, 2002, 02:48 AM
Hi:

It's a class from the System.Collections namespace, intended to be used for holding a list of objects.

Take a look at it, it's very usefull.

VictorL

dky1e
June 26th, 2002, 12:07 PM
It's like an array, except it resizes for you automatically.

I have found the ArrayList and HashTable to be the most useful.

check out the system.collections namespace:
http://www.msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemCollections.asp

jparsons
June 26th, 2002, 04:43 PM
Originally posted by swathi2002
Can anyone explain me What is ArrayList and what for it is used?

Thanks in advance.

An ArrayList is very similar to a Java Vector. It's has the functionality of a resizeable array. You can use instances of it like you were simply using an array except you don't have to worry about the size being right. It will take care of that for you.