Class WaitingList

java.lang.Object
com.example.skeddly.business.TicketList
com.example.skeddly.business.WaitingList

public class WaitingList extends TicketList
Class for list of people who want to attend an event
  • Constructor Details

    • WaitingList

      public WaitingList(int max)
      Constructor for WaitingList.
      Parameters:
      max - The maximum number of tickets that can be in the list.
    • WaitingList

      public WaitingList()
      Constructor for WaitingList.
  • Method Details

    • draw

      public String draw()
      Randomly select and remove a ticket from the waiting list
      Returns:
      The selected ticket
      Throws:
      IllegalStateException - if the list is empty.