1
0
Fork 0

//added readCsv option to UI loop

main
Emelie Schneider 2024-01-09 12:17:28 +01:00
parent aac8541abe
commit 32470a9b10
1 changed files with 14 additions and 0 deletions

View File

@ -20,6 +20,7 @@ public class Axel {
String readInput;
String currentCell;
String formula;
String path;
spr.put("A3", "123");
spr.put("A2", "1");
@ -47,6 +48,19 @@ public class Axel {
//set values in cells
System.out.println();
System.out.println("Do you want to load a csv File?(y/n)");
readInput=sc.nextLine();
if(readInput.equals("y")||readInput.equals("Y")) {
System.out.println("Paste the filpath here:");
readInput= sc.nextLine();
path=readInput;
spr.readCsv(path, ",", "A1");
}
System.out.println("cell name:");
readInput= sc.nextLine();