1
0
Fork 0

Compare commits

...

1 Commits
main ... main

Author SHA1 Message Date
Oliver Hummel ada8f538a2 Bugfix - OutofBoundsException. 2023-12-19 15:25:55 +01:00
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ public class Spreadsheet {
else
out.print(cell.getValue());
if (cell != row[cells.length-1])
if (cell != row[cells[0].length-1])
out.print(",");
}
out.println();
@ -182,7 +182,7 @@ public class Spreadsheet {
StringBuilder sb = new StringBuilder();
sb.append(" ");
for (int i = 0; i < cells.length; i++) {
for (int i = 0; i < cells[0].length; i++) {
sb.append(" " + (char)('A'+ i) + " | ");
}