how to find the index based on rowposition and column position
<p>I have an two-dimenstional array..</p>

<p>I know the rowposition and column position.</p>

<p>How to find the index of the array based on the row position and column position.</p>

<pre><code>Ex: if rowPosition =1 and columnPosition = 1,
</code></pre>

<p>the index should be 2.
The Pictorial representation is</p>

<pre><code>      0      1
      2      3
</code></pre>
