How do I tell Java to go to a specific row in a 2d array?
<p>For schoolwork, I need to write a class that is a matrix of integers. Its attribute is a 2-dimensional array which is meant to be squared. One of the methods has a parameter that is an int which is meant to refer to a specific "row" of the matrix. The method checks if that specific row, the one that was passed in with the method, has all the numbers in ascending order. For example, a number 6 would be passed in.  How do I tell Java to go to a "row"  or array 6 in the 2d array? The method signature is:
boolean checkIfAscending(int rowNumber, int size).</p>