From e5190d7c9bd269c3104d282cf75688d19c1cf9d8 Mon Sep 17 00:00:00 2001 From: devra Date: Sat, 6 Jan 2024 15:55:25 +0100 Subject: [PATCH] Grundrechenarten Implementiert --- .../informatik/spreadsheet/Axel.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java index c697853..4f4ac59 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java @@ -12,16 +12,23 @@ public class Axel { public static void main(String[] args) throws FileNotFoundException { Spreadsheet spr = new Spreadsheet(10,10); - spr.put("A3", "123"); - spr.put("A2", "1"); + System.out.println(); - spr.put("B9", "=41+A2"); - spr.put("J5", "=7*6"); + spr.put("A1", "13"); + spr.put("A2", "1"); + spr.put("A3", "123"); + + spr.put("B1", "=A2"); + spr.put("c1", "=A2-A1+30"); + spr.put("B9", "=41+A1"); + spr.put("J5", "=7*6/5"); spr.put("J6", "=3/2"); System.out.println(spr); - spr.saveCsv("C:\\Users\\devra\\eclipse-workspace\\Axel\\resources\\zahlen.csv"); + + + //spr.saveCsv("C:\\Users\\devra\\git\\Axel\\Axel\\resources\\zahlen.csv"); // TODO: You might want to put "UI loop" for entering value and formulas here resp. in some UI methods. }