Array Flashcards
(13 cards)
collection of entities with similar types.
array
used to declare an array in Java, either after the type or after the name.
square brackets
set of guidelines for a specific programming language that recommend programming style, practices, and methods for each aspect of a program written in that language.
conventions
refers to the memory allocated to the program while it is running, or in other words, during runtime.
dynamic memory
access the elements in a particular index
indexing
Assigning values to the elements of the array requires indexing
assignment operator
array of arrays
multi-dimensional array
you can declare a multi-dimensional array by
using ____
two or more sets of brackets
String [] [] names
cycles through an object collection, such as arrays in sequential manner, from start to finish.
for-each loop
general form of for-each style
for(type itrvar : collection) statement block
specifies the array type
type
specifies the iterator variable that will accept the elements from the collection, from beginning to end, one at a time.
itrvar
a method available in the System class that can be used to copy data from one array to another efficiently.
arraycopy