From ff7f73a41381634ca55f380e03a500b161433258 Mon Sep 17 00:00:00 2001 From: 3011357 <3011357@stud.hs-mannheim.de> Date: Tue, 9 Jan 2024 13:42:28 +0100 Subject: [PATCH] angepasster readCsv() Aufruf --- .../de/hs_mannheim/informatik/spreadsheet/Axel.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java index 97db000..76d82b9 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java @@ -11,15 +11,17 @@ import java.util.Scanner; public class Axel { public static void main(String[] args) throws FileNotFoundException { - Spreadsheet spr = new Spreadsheet(99,26); + Spreadsheet spr = new Spreadsheet(10,10); + spr.readCsv("C:/Users/kisne/IdeaProjects/PR1-Spreadsheet/tmp/test.csv", ","); Scanner keyboard = new Scanner(System.in); spr.put("A3", "123"); - spr.put("A2", "1"); + spr.put("A2", "3"); + spr.put("A5", "5"); + spr.put("B8", "6"); - spr.put("A99", "=Summe(20:20)"); - spr.put("B99", "=SUMME(A2:A3)"); - spr.put("J6", "=36/2"); + + spr.put("A8", "=Summe(A5:D8)"); spr.put("J7", "=a2+2"); spr.put("J8", "=a2+J7*4"); @@ -47,7 +49,6 @@ public class Axel { spr.saveCsv("C:/Users/kisne/IdeaProjects/PR1-Spreadsheet/tmp/test.csv"); - // TODO: You might want to put "UI loop" for entering value and formulas here resp. in some UI methods. } } \ No newline at end of file