Answer:
myvals[1][2] = 4
Step-by-step explanation:
Int[][] myvals = {{2, 4, 6, 8}, {20, 40, 60, 80} }
This command means that we have the following matrix:
[tex]\left[\begin{array}{cccc}2&4&6&8\\20&40&60&80\end{array}\right][/tex]
using the above two-dimensional array, what is the value of myvals[1][2]?
This is the element at first row, column 2.
First row is {2, 4, 6, 8}
First row, column 2 is 4. So
myvals[1][2] = 4