How to print an array of ArrayList in Java?
<p>I have created a array of <code>ArrayList</code> but now I want to access its elements and sort them and print them, please help me to find out a way </p>

<pre><code>  ArrayList&lt;Integer&gt;[] lists = (ArrayList&lt;Integer&gt;[])new ArrayList[20] ;
  for(int i=0;i&lt;20;i++){
    lists[i]=new ArrayList&lt;Integer&gt;();
    lists[i].add(i+i*2);
    lists[i].add(i+i*3);
    lists[i].add(i+i*4);
    lists[i].add(i+i*5);
  }  
   System.out.println(lists);
</code></pre>

<p>output:- </p>

<pre><code>[Ljava.util.ArrayList;@15db9742 
</code></pre>