From 79b6a0316b9c92db484fd786a55d86a9e0afd54f Mon Sep 17 00:00:00 2001 From: selim Date: Sun, 31 Dec 2023 14:59:52 +0100 Subject: [PATCH] Spreadsheet getCol toUpperCase() fix. --- .idea/misc.xml | 1 - Axel/resources/zahlen.csv | 12 ++++++------ .../informatik/spreadsheet/Spreadsheet.java | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index a818314..c9d8514 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/Axel/resources/zahlen.csv b/Axel/resources/zahlen.csv index 5bce6de..46ab62c 100644 --- a/Axel/resources/zahlen.csv +++ b/Axel/resources/zahlen.csv @@ -1,9 +1,9 @@ -=MITTELWERT(B1:C10),=10,=234,,,,,,, -,,,,,,,,, -,,,,,,,,, -,,,,,,,,, -,,,,,,,,, -,,,,,,,,, +,,=SUMME(A1.B10),,,,,,, +,,=PRODUKT(A1.B10),,,,,,, +,,=MITTELWERT(A1.B10),,,,,,, +,,=STABW(A1.B10),,,,,,, +,,=MIN(A1.B10),,,,,,, +,,=MAX(A1.B10),,,,,,, ,,,,,,,,, ,,,,,,,,, ,,,,,,,,, diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java index fcf8845..60f83e4 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java @@ -74,7 +74,7 @@ public class Spreadsheet { } private int getCol(String cellName) { - return cellName.charAt(0) - 'A' + 1; + return cellName.toUpperCase().charAt(0) - 'A' + 1; } private int getRow(String cellName) {