add csv output to console

This commit is contained in:
Matti 2024-05-01 21:44:30 +02:00
parent 1d31b5950d
commit 4aaf422d3b
2 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ public class Anwendung {
for (int i=0; i<amountOfSets; i++){
CustomerData data = new CustomerData(startingNR+i);
data.print();
System.out.println(data.getCSV());
System.out.println();
}
}

View File

@ -173,6 +173,11 @@ public class CustomerData {
}
return result;
}
public String getCSV(){
this.fileEntryCSV = customNR + "#" + firstName + "#" + lastName + "#" + street + "#" + houseNR + "#" + city + "#" + amount;
return this.fileEntryCSV;
}
public static void main(String[] args){
CustomerData data = new CustomerData(123456);