A good answer might be:

Probably not. It would be nice to have some organized way of reading and storing the values.

Picture of an Array

An array is an object that can be used to store a list of values. It is made out of a contiguous block of memory that is divided into a number of "slots." Each slot can hold a value, and all the values are of the same type (for example, primitive type int.) The picture shows an array.

The name of this array is data. The slots are indexed 0 through 9, and each slot holds an int. Each slot can be accessed by using its index. For example, data[0] is the slot which is indexed by zero (which contains the value 23), data[5] is the slot which is indexed by 5 (which contains the value 14).

Important Facts:

  • Indexes always start at zero, and count up by one's until the last slot of the array.
  • If there are N slots in an array, the indexes will be 0 through N-1.

Sometimes the index is called a subscript. The expression data[5] is sometimes pronounced "data-sub-five" as if it were an expression from mathematics: data5.


QUESTION 2:

What value is in data[7]   ?

Click Here after you have answered the question