Professional Documents
Culture Documents
Array Review
Array Review
Array Review
Array Review
Learning Goals
We will learn:
To declare and create arrays
To process arrays to find: sum, min/max, average of
values in the list
To write methods that return an array
Write methods that accept an array in the
parameter list
What is an Array?
An array is:
An (reference) object used to store a list of values
A contiguous block of memory is used to store the
values
Each cell holds a value
Note: You can trace your program and track the values by using a memory map ( a
table where the variables are listed in the order they were declared and the values
stored are recorded)
Method that accepts an array as a
Parameter
return list;
}