title: How to fill a two Dimensional ArrayList in java with Integers?
body: <p>I have to create a 2d array with unknown size. So I have decided to go with a 2d ArrayList the problem is I'm not sure how to initialize such an array or store information.</p>
  
  <p>Say I have the following data</p>
  
  <pre><code>   0 connects 1
     2 connects 3 
     4 connects 5
  </code></pre>
  
  <p>....etc up to a vast amount of random connections</p>
  
  <p>and I want to insert </p>
  
  <pre><code>true(1) into [0][1], 
  true(1) into [2][3], 
  true(1) into [4][5]. 
  </code></pre>
  
  <p>Can the array automatically update the column/rows for me</p>
  
  <p>Any help is appreciated thanks</p>