public List <Ticket> viewTicket() { TicketDAO t = TicketDAO.getInstance(); List <Ticket> tickets = t.viewTickets(); return(tickets); }
public static TicketDAO getInstance() { if (ticketDAL == null) { ticketDAL = new TicketDAO(); } return(ticketDAL); }