add csv output to console
This commit is contained in:
parent
1d31b5950d
commit
4aaf422d3b
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user