Java Games: Flashcards, matching, concentration, and word search.

7.02 Arrays

AB
arraya “container” that holds more than one value.
elementEach value in an array
array/variablemust be declared before it can be used.
loop/arrayif we are putting successive values in the array.
Lengthproperty that will give the length (number of elements) of any declared array
runtime errorif you try to assign a value or pull a value from an array using an incorrect runtime error.
For Eachspecial loop’s main use is pulling data from arrays
Preserve keywordre-declare the array AND hold the values
Dynamic ArrayAn array that varies in size during run time
ReDimcan be executed again and again to change the size of an array throughout program execution



This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities