I have the following Bidimensional arrangement called info
:
Laura,9,8,10,10,10,10,20
Pedro,10,50,10,35,10,10,90
Luis,10,60,10,70,10,41,17
Mario,10,10,10,43,10,10,23
Blanca,10,89,41,10,10,85,17
What would be the code to be able to eliminate any row?
For example, the whole row 2. I know that it is in the position info[2][0]
however, I do not know what the code would be to delete the row.
The code I have only goes through the arrangement:
for (int x=0; x < info.length; x++) {
for (int y=0; y < info[x].length; y++)
System.out.print(info[x][y]+"\t");
System.out.println("\n");
}
Investigating I have only found that when removing the array , only replace the values by zeros, but that is not what I need, if not delete the row completely and re-dimension the < em> array .