This is the code:
// Default constructor
public Bestellung() {
this(null, null, null);
}
// Initial constructor
public Bestellung(LocalDateTime zeitstempelBestellung, LocalDateTime zeitstempelAuslieferung,
PizzaVO[] warenkorb, int index) {
super();
this.zeitstempelBestellung = zeitstempelBestellung;
this.zeitstempelAuslieferung = zeitstempelAuslieferung;
this.warenkorb = warenkorb;
this.index = index;
}
I'd like to finish the default constructor. Therefore I have to pass two localDateTimes, one empty array and one int to the constructor. How do I pass the empty array?
How do I pass the empty array?
new PizzaVO[] { }
BTW, this is not a default constructor:
public Bestellung() {
this(null, null, null);
}
it is a no-argument constructor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With