posted 1 year ago
Hi,
in page 491, chapter 9 Collections and Generics - Comparing Collection Types, we find at the bottom of the page :
Stack: Implements Queue.
but it should be Stack: Implements List.
Class Stack<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
java.util.Stack<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
thank you
-------------------------------------
Mourid Smida