I have a 2D int array that I need to delete 1 element from each row, but they aren't necessarily in the same column.
For example, if I have the following array:
[[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
I would want the following output if I chose to delete the elements 2, 6, 8:
[[1, 3],
[4, 5],
[7, 9]]
The only answer I have found that closely resembles a solution was an answer to delete a whole column from a 2D array. I also understand ArrayLists would make my life extremely easy, but I am using a 2D array to make my life easier in a different area.