I have a class Ticket
, which creates a ticket. and I have to make a CustomerService
class with a ArrayList
of Ticket type, which I called tickets and places all tickets created in this ArrayList.
Ticket class constructor:
public Ticket(char attendanceType, int ticketNumber)
{
this.arriveTime = LocalDateTime.now();
this.attendanceTime = null;
this.attendanceType = validateAttendanceType(attendanceType);
this.waitTime = 0;
this.ticketNumber = validateTicketNumber(ticketNumber);
}