Arrays and collections

An array is an indexed and ordered set of elements. Unless specifically defined in the question, the index of the first element in an array is 0. Collections store a set of elements. The elements may be of any type (numbers, objects, arrays, Strings, etc.). A collection provides a mechanism to iterate through all of the elements that it contains.

To access the contents of this site, you must subscribe.

Help