Summary: Arrays

This lesson summarizes the major points we made in this chapter.

We'll cover the following...
  • An array is a construct in a programming language that enables us to group items having the same or related data types.
  • Declaring an array defines a variable and gives the data type of the array’s entries.
  • Creating an array allocates memory for a fixed number of entries.
  • The number of elements allocated for an array is called the array’s length. The length of the array a is written in Java as a.length.
  • Each
...