Overwriting a row in a two dimensional arraylist
<p>I have a 2D arraylist containing 4 cols. I want to add a 5 th column to this arraylist.
the fourth col is a set of values based on which the result is to be added as the 5th column.
If 1st row has 4th element as 0 then the fifth column will have a result string "Failure"</p>

<p>Is it ok to use a 1D arraylist to get all the elements of the 2D arraylist and add the 5th element to it and then overwrite the 2D with the 1D arraylist items 
OR
Is there a way we can directly append to the 2D arraylist using the index() and indexOF()?</p>

<p>Will appreciate it if someone can help me out with this.</p>
