Page 1267 - AP Computer Science A, 7th edition
P. 1267
39. (A) method1 creates a mirror image of its parameter mat across a horizontal line placed under mat. If mat is the matrix
123 456
then the mirror image created below it is
456 123
method2 also creates a mirror image, this time with the mirror placed above its parameter mat. Note that the reflection across a horizontal line above
123 456
is also
456 123
A good general hint to solve a problem like this is to take a very simple matrix mat and generate some elements of newMat. It won’t take long to see that the two methods produce the same matrix.