create empty cell table

This commit is contained in:
Guillaume BONABAU 2024-04-25 11:35:53 +02:00
parent 0d3c62f142
commit 97b110c76f
1 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,15 @@ public class Table {
//initialize the table
int vertexCount = 3;
table = new ArrayList<>(vertexCount);
//fill the table will empty cells
Cell emptyCell = new Cell(0,0);
for (int i = 0; i < height; i++) {
for (int j = 0; j < width; j++) {
this.setCell(emptyCell,i,j);
}
}
}
public int getheight() {