Introduction to OOP | Chapter 2: Abstraction : | next | previous | audio | real | text |
public class LinkedList implements Stack ... { ... public void pop () throws EmptyStackException { if (isEmpty()) throw new EmptyStackException(); removeFirst(); // delete first element of list } ... }Every level is important, and often you move quickly back and forth between levels.