Create multi-dimensinal ArrayList in java
<p>I want to create an arrayList as following.</p>

<pre><code>id-&gt;1512   associated with the values -&gt; 12,45,78
id-&gt;1578   associated with the values -&gt; 456,78,87,96
</code></pre>

<p>What I have to do? Should I create a 2-d arrayList or can I do that with single dimension arraylist?</p>
