From 0a6ad9034330929ae1626dba79fb65b3806d6ce1 Mon Sep 17 00:00:00 2001 From: ERANZER Date: Tue, 9 Jan 2024 14:32:07 +0100 Subject: [PATCH] ReadCsv + little rework for UI --- Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java | 2 +- Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java index d366626..65a313a 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Axel.java @@ -42,7 +42,7 @@ public class Axel { } spr.put(cell,in); } - spr.saveCsv("/tmp/test.csv"); + spr.saveCsv("tmp/test.csv"); kb.close(); } diff --git a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java index a37aec7..8feb0e0 100644 --- a/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java +++ b/Axel/src/de/hs_mannheim/informatik/spreadsheet/Spreadsheet.java @@ -263,7 +263,7 @@ public class Spreadsheet { while (m.find()) { // m.find() must always be used before m.group() String s = m.group(); - if(!s.isEmpty()) { + if(!s.isEmpty()) { if((int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z' && get(s).isEmpty()) continue; if(first && (int)s.charAt(0)>=(int)'A'&&(int)s.charAt(0)<=(int)'Z') {