Kotlinlearncs.online LogoJava
Return to List

Homework: Queue Adaptor

Created By: Chris Taylor
/ Version: 2023.8.0

Create a class that implements the PureQueue interface with the following methods:

  • Object peek();
  • Object poll();
  • void offer(Object item);
  • boolean isEmpty();

Your implementation should adapt the LinkedList class and provide an efficient implementation.

Related Lessons

Stuck? You may find these lessons helpful: