how to add specific element to the array of arraylist
<pre><code>ArrayList&lt;int[]&gt; arl = new ArrayList&lt;int[]&gt;();
int a1[] = {1, 2, 3};
arl.add(0, a1);
</code></pre>

<p>How do I set an element value at a specific position like we do in 2d array as <code>ar1[0][2]=5</code>  in this code if we want to reset the value 3 to something else.</p>
