created 11/25/98; revised: 04/21/99, 11/25/99, 01/24/00, 07/20/02, 05/28/03

CHAPTER 48 — Arrays as Parameters

The last two chapters were about arrays. The example programs used a main() method which contained the arrays and did all the computing. This is not the way programs are usually written. Usually, arrays (and other forms of data) are manipulated by passing them as parameters to specialized methods. Each method is like a "tool" that does something with an array. For example, there may be a findMaximum method or a sumElements method.

Chapter Topics:

QUESTION 1:

(Review:) What is a parameter?