Author | Message |
---|---|
64bitworldftw
Posts: 11
|
Posted 16:15 Oct 06, 2017 |
After using the LinkedStack<E> code on the book and importing java.util.Stack, There was an error message on implements Stack<E>:
Is there anything I need to do or do I need to change something in order for this to work? |
kknaur
Posts: 540
|
Posted 16:38 Oct 06, 2017 |
I said in class not to use the Stack interface but to just make your own Stack class which uses the SinglyLinked class. |
64bitworldftw
Posts: 11
|
Posted 14:33 Oct 07, 2017 |
Stack class meaning just LinkedStack or there's supposed to be two classes (LinkedStack and Stack)? Last edited by 64bitworldftw at
14:47 Oct 07, 2017.
|
kknaur
Posts: 540
|
Posted 14:48 Oct 07, 2017 |
You can call it what you want, but Stack is probably the best name for this assignment since we don't care what type of Stack it is (even though you have to use the LinkedList implementation of Stack). |