Kotlinlearncs.online LogoJava
Return to List

Homework: Stack Adaptor

Created By: Chris Taylor
/ Version: 2023.8.0

Create a class, Stack, that implements the PureStack interface with the following methods:

  • Object peek();
  • Object pop();
  • void push(Object item);
  • boolean isEmpty();

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

Related Lessons

Stuck? You may find these lessons helpful: