A good answer might be:

The completed picture is seen below.


Completed Picture

 

In the method call operate.print(ar2) the actual array ar2 is connected to the parameter x of the method. The picture shows this.

By using parameters with methods you can use the same method with different data. The method becomes a useful tool that can be used in many situations.

Note: In this picture, the arrow connected to ar2 and the arrow connected to x are different, even though they point to the same object. In computer memory, as the program is running, the bit pattern in x will be identical to the bit pattern in ar2. Both will contain the unique bit pattern that is a reference to the array object.



QUESTION 8:

(Review Question:) The print(int[] x) method uses a parameter that refers to an object. Can parameters also be primitive types, like int?