I'am Scanning a CSV File with the following Code:
public void scanFile() {
boolean isNumber = false;
String test;
try {
sc = new Scanner(Gui.selectedFile);
sc.useDelimiter("[;\"]");
while (sc.hasNext() && isNumber == false) {
test = sc.next();
if(test.equals("{9}")) {
System.out.println("success");
}
System.out.println();;
if (sc.hasNextInt()) {
isNumber = true;
}
} sc.close();
} catch (Exception e) {
System.out.println("error");
}
Now i need a way, to create a String for EACH entry in the CSV. There are around 60 entry's in my CSV. I need to use the read data further in the program.