How to get rows and columns count of a 2D array in Java?
<p>For an array in Java, we can get the <code>length</code> of the array with <code>array_name.length</code>. Similarly, how would one get the number of rows and columns of a <strong>2D</strong> array?</p>