Page 534 - AP Computer Science A, 7th edition
P. 534
Suppose mat is originally 0123 4567 3210 7654
After the method call printSomething(mat) the output will be
(A) 0 1 2 3
4567 3210 7654
(B) 0 45
321
7654
(C) 0 1 2 3
456 32
7
(D) 0 4 3 7
(E)
There will ArrayIndexOutOfBoundsException will be thrown.
16. Consider two different ways of storing a set of nonnegative integers in which there are no duplicates.
Method One: Store the integers explicitly in an array in which the number of elements is known. For example, in this method,
be no
output. An