Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
VB Programming

Tutorial: ArrayList

 

The ArrayList is used to keep a number of items indexed by integer.

Useful methods include:

add
Insert a new item - items get added to the end.
get
Retrieve an item at a particular position
size
The number of items in the array (one more than the highest index).
set
Replace the value at the specified index.
toArray
Convert to a "normal" array

1. Medals


Big

In this example we fill the first three positions: 0, 1, 2 with "gold", "silver", "wood" - we then insert "bronze" into position 2 - this forces "wood" into position 3.

0	gold
1	silver
2	bronze
3	wood