created 11/27/98; revisions: 11/27/99, 01/24/00, 07/20/02, 05/29/03
CHAPTER 49 — Methods that Change Arrays
A method can change the values of elements in
an array that has been passed to it as a parameter.
Often a method rearranges the data in
an array or alters selected elements.
Chapter Topics:
- Review of parameter passing with int variables.
- Parameter passing with array reference variables.
- A method to zero an array.
- A method to copy one array to another.
QUESTION 1:
(Review Question:) what types of data can be held in the
elements of an array?