get an element of a matrix
<p>I have a matrix of object and I want to get an element of it giving the int of the place.</p>

<pre><code>Computer matrix[][]=new Computer[rows][cols]

public Computer getComputerInTheMatrix(int n_rows,int n_cols){

return matrix[n_rows][n_cols];
}
</code></pre>

<p>is it right this method?</p>
