title: Generic type for Arraylist of Arraylists
body: <p>In normal array list initialization,
  We used to define generic type as follows,</p>
  
  <pre><code>List&lt;String&gt; list1 = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>But in case of ArrayList of ArrayLists, How can we define its generic type?</p>
  
  <p>The code for array list of array lists is as follows:</p>
  
  <pre><code>ArrayList[] arr=new ArrayList[n];
   for(int i=0;i&lt;n;i++)
   {
   arr[i]=new ArrayList();
   } 
  </code></pre>
  
  <p>Just share the syntax, if anybody have idea about it..!</p>