//added readCsv option to UI loop
parent
aac8541abe
commit
32470a9b10
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue