Addressing multi-dimentional arraylists
<p>I'm attempting a radix sort but I'm having trouble addressing arraylists of arraylists. The list has 10 spaces, each with a bucket of size n. </p>

<pre><code>ArrayList&lt;ArrayList&lt;Integer&gt;&gt; list = new ArrayList&lt;ArrayList&lt;Integer&gt;&gt;(10);
ArrayList&lt;Integer&gt; bucket = new ArrayList&lt;&gt;();
bucket.add(99);
list.add(bucket);
list.add(bucket);
list.get(0).add(12); (6)
</code></pre>

<p>When I attempt to add in a value using (6) it adds 12 for each arraylist within list (presumably because they are both buckets). How can I initialize the arraylist properly such that I treat each arraylist in list independently? And would I access the elements of each arraylist in list in a similar fashion?</p>

<p>Thanks</p>
