A more complete and consistent set of LIFO stack operations is provided by the Deque interface and its implementations , which should be used in preference to this class. For example:
[CODE=Java]Deque<Integer> stack = new ArrayDeque<Inte ger>();[/CODE]
Comment