1
0
Fork 0

angepasster readCsv() Aufruf

main
Anastasia Kisner 2024-01-09 13:42:28 +01:00
parent 4cb618729a
commit ff7f73a413
1 changed files with 7 additions and 6 deletions

View File

@ -11,15 +11,17 @@ import java.util.Scanner;
public class Axel { public class Axel {
public static void main(String[] args) throws FileNotFoundException { 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); Scanner keyboard = new Scanner(System.in);
spr.put("A3", "123"); 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("A8", "=Summe(A5:D8)");
spr.put("J6", "=36/2");
spr.put("J7", "=a2+2"); spr.put("J7", "=a2+2");
spr.put("J8", "=a2+J7*4"); spr.put("J8", "=a2+J7*4");
@ -47,7 +49,6 @@ public class Axel {
spr.saveCsv("C:/Users/kisne/IdeaProjects/PR1-Spreadsheet/tmp/test.csv"); 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.
} }
} }