Array Elements - Review Notes

12 April 2011

An array is a list of values which are stored in a specific, numbered placeholder in the array.

Java array indexes begin at zero. Therefore, an array that has an index size of 11 would start a 0 and go to 10. This would be defined in the following manner:

dogs[10]

To reference the eighth value in this array, we would use the following:

dogs[7]

So, an array is an object that stores a list of values. The entire list can be referenced by its name, while a particular value can be its location in the array index. Square brackets are used to identify the particular index.

R. E. Barksdale

,

---

Commenting is closed for this article.

---