Usereingabe & Beschränkung auf 99 Zeilen und 26 Spalten implementiert
parent
f4e3ac8db0
commit
6849d198ad
|
@ -24,6 +24,17 @@ public class Spreadsheet {
|
|||
|
||||
// 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];
|
||||
|
||||
for (int r = 0; r < rows; r++)
|
||||
|
|
Loading…
Reference in New Issue