Wyo VB Lecture Notes
Objective #1: Use an array to store data.
Instead of declaring 5 variables with the statement
Dim intExam1, intExam2, intExam3, intExam4, intExam5 As Integer
You should declare an array named intExam with the statement
Dim intExam(5) As Integer
This statement creates one array that has six positions. Each position of the array can store a separate exam value. The size or length of the array intExam is said to be 6 simply because that is how many elements it can hold. This array has 6 elements not 5 because Visual Basic always includes an element with position (subscript) zero. You can declare arrays to be as big as you would like in Visual Basic.
Objective #2 - Create arrays of objects.
Objective #3: Use an ArrayList to store data.