title: How to create an 2D ArrayList in java?
body: <p>I want to create a 2D array that each cell is an <code>ArrayList</code>!</p>
  
  <p>I consider this defintions, but I can not add anything to them
  are these defintions true?!</p>
  
  <pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; table = new ArrayList&lt;ArrayList&lt;String&gt;&gt;();
  </code></pre>
  
  <p>or </p>
  
  <pre><code>ArrayList[][] table = new ArrayList[10][10];
  
  //table.add??????
  </code></pre>
  
  <p>Please help me</p>