Figured it out guess all I had to do was create an instance like this
class Stack { Deque stack; public Stack() { stack = new Deque(); } public void push(Object item) { stack.insertOnFront(item); } public Object pop() { Object deleted; deleted = stack.deleteFromFront(); return deleted; } public boolean isEmpty() { return stack.isEmpty(); } public String toString() { return stack.toString(); } }
a lot simpler than I thought it would be
--- Update ---
I screwed this whole post up my bad can you guys just mark it as solved or delete it... so that it is like gone... anyway yeah thanks