Saturday, August 25, 2007

ArrayList

ARRAYLIST (System.Collections)
• ArrayList is an advanced form of array that provides variety of methods to resize and alter the data it stores
• Better then Arrays that need to be recreated if its needed to resize them
• ArrayList provides Remove, Remove, Add etc. to insert or delete data
• Remove method, removes element by value, eg Remove(7) means remove the element that has the value 7
• RemoveAt method removes by index, RemoveAt(6) means remove element at location 6
• Declared as ArrayList arrList = new ArrayList();

No comments:

Post a Comment