A good answer might be:New lines are inserted into the program, as below. | |
Parameter Connected to New DataIn the revised program, the print() method is used first with one array, and then with the other array. This is possible because the parameter x of the method refers to the current array, whichever one is used in the method "call."
The program will print the following: C:\>java ArrayDemo The array is:-20 19 1 5 -1 27 19 5 The second array is: 2 4 1 2 6 3 6 9 | |
QUESTION 4:
|