What would be the easiest way to implement a matrix of 'set' size m * n in Java? The matrix structure wouldn't need to handle any complex matrix operations such as matrix multiplications or anything, just to hold data - the only thing I would use it for is to access the data at M(i, j), change the data at M(i, j) and set the data at M(i, j) for values 0 <= i < m, 0 <= j < n.
Would the most straight forward approach to this problem be to fill an m-size array with n-size arrays or what is the recommended approach to this? Or is there some better data structure for this altogether?