1
0
Fork 0

Usereingabe & Beschränkung auf 99 Zeilen und 26 Spalten implementiert

main
Emelie Schneider 2024-01-03 13:05:34 +01:00
parent f4e3ac8db0
commit 6849d198ad
1 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,17 @@ public class Spreadsheet {
// TODO limit the maximum size on 99 (1..99) rows and 26 (A..Z) columns // TODO limit the maximum size on 99 (1..99) rows and 26 (A..Z) columns
//limit maximum size
if(rows>99) {
rows=99;
}
if(cols>26) {
cols=26;
}
cells = new Cell[rows][cols]; cells = new Cell[rows][cols];
for (int r = 0; r < rows; r++) for (int r = 0; r < rows; r++)