I have an arrayList called Arr_SxCorrel_table2d like:
The ArrayList is of the type: ArrayList<List<String>>
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.], [], [], []]
I want to get rid of the elements that are empty. I tried:
for (int i=0;i<Arr_SxCorrel_table2d.size(); i++) {
if (Arr_SxCorrel_table2d.get(i) == null){
Arr_SxCorrel_table2d.remove(i);
}
}
But nothing gets removed. Not sure what the next step should be