Test Cases (0/11)

      queue.dequeue();

    • queue.print() to log Michael Joseph Sarah

    • queue.dequeue(); queue.dequeue();

    • queue.print() to log Joseph Sarah

    • queue.dequeue(); queue.dequeue(); queue.dequeue();

    • queue.print() to log Sarah

    • queue.dequeue();

    • queue.size() to return 0

    • queue.front() to return Michael

    • queue.isEmpty() to return false

    • queue.contains("Mike") to return false

    • queue.contains("Sarah") to return true

    • queue.size() to return 3

    • queue.size() to return 2

    • queue.dequeue() to return Michael

    Output
    Michael
      (0/300)