create empty cell table
This commit is contained in:
parent
0d3c62f142
commit
97b110c76f
|
|
@ -17,6 +17,15 @@ public class Table {
|
||||||
//initialize the table
|
//initialize the table
|
||||||
int vertexCount = 3;
|
int vertexCount = 3;
|
||||||
table = new ArrayList<>(vertexCount);
|
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() {
|
public int getheight() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue