View difference between Paste ID: 05TBaNtN and wtdFWGRT
SHOW: | | - or go back to the newest paste.
1
 
2
public interface ILinkedList<ELEMENT> extends Iterable<ELEMENT> {
3
    // Returns the number of elements in this list.
4
    public int size();
5
 
6
    // Inserts the specified element at the beginning of this list.
7
    public void addFirst(ELEMENT item);
8
    // Appends the specified element to the end of this list.
9
    public void addLast(ELEMENT item);
10
    // Removes and returns the first element from this list.
11
    public ELEMENT removeFirst();
12
    // Removes and returns the last element from this list.
13
    public ELEMENT removeLast();
14
 
15
}