Please help! I'm new to Java and have done the following:

Created an array to hold 100 records.
Created 5 records for the array (index 0, 1, 2, 3, 4)

Now I'm trying to use a for loop to have a write output of the array values and I'm getting a NULL pointer exception.

Any ideas???