title: How to get rows and columns if arrays is only 1D using for loops
body: <p>I was used to <code>Matlab</code>'s feature where you can make a matrix and get <code>A[i][j]</code> and things like that. Now I am using Java and we can only use one dimensional array. I am suppose to modify the entries (i:for rows and j:for columns) using a nested for loop but I am not sure how to access them if they are stored in an 1D array. Can someone please help me out? How difficult is it?</p>