Page 1030 - AP Computer Science A, 7th edition
P. 1030

29. (A) Method alter shifts all the columns, starting at column c+1, one column to the left. Also, it does it in a way that overwrites column c. Here are the replacements for the method call alter(1):
mat[0][1] mat[0][2] mat[1][1] mat[1][2] mat[2][1] mat[2][2]
= mat[0][2] = mat[0][3] = mat[1][2] = mat[1][3] = mat[2][2] = mat[2][3]
































































































   1028   1029   1030   1031   1032