From c6ce44dac8ba8fb063158a4e40ac6a162f0fd4f8 Mon Sep 17 00:00:00 2001
From: 3011357 <3011357@stud.hs-mannheim.de>
Date: Sat, 23 Dec 2023 23:14:16 +0100
Subject: [PATCH] =?UTF-8?q?Ge=C3=A4nderte=20Bugs?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.idea/.gitignore | 8 ++++++++
.idea/misc.xml | 5 +++++
.idea/modules.xml | 8 ++++++++
.idea/vcs.xml | 6 ++++++
.../informatik/spreadsheet/Spreadsheet.java | 4 ++--
PR1-Spreadsheet.iml | 11 +++++++++++
6 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 PR1-Spreadsheet.iml
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..13566b8
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,8 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..c9d8514
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..b113384
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java
index de46be0..ceacf6f 100644
--- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java
+++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java
@@ -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) + " | ");
}
diff --git a/PR1-Spreadsheet.iml b/PR1-Spreadsheet.iml
new file mode 100644
index 0000000..ea954f0
--- /dev/null
+++ b/PR1-Spreadsheet.iml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file