title: How to remove null elements from multidimensional array in java
body: <p>I have an arrayList  called <code>Arr_SxCorrel_table2d</code> like:
  The ArrayList is of the type: <code>ArrayList&lt;List&lt;String&gt;&gt;</code></p>
  
  <pre><code>Arr_SxCorrel_table2dREMOVAL[[OF, RE, RE, RE, IND], [HA, 22, 3, 1, 4, 18%], [HA, 7, 3, 1, 4, 57%], [REG, 3, 1, 0, 1, 33%], [BING, 4, 3, 33, 32, 23%], [], [NOTE: details.], [], [], []]
  </code></pre>
  
  <p>I want to get rid of the elements that are empty. I tried:</p>
  
  <pre><code>for (int i=0;i&lt;Arr_SxCorrel_table2d.size(); i++) {
                   if (Arr_SxCorrel_table2d.get(i) == null){
                       Arr_SxCorrel_table2d.remove(i); 
                           }
                   }
  </code></pre>
  
  <p>But nothing gets removed. Not sure what the next step should be</p>