Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Created by Julio Tentor <jtentor@fi.unju.edu.ar>
- //
- // from https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/util/LinkedList.html
- public interface ILinkedList<ELEMENT> extends Iterable<ELEMENT> {
- // Returns the number of elements in this list.
- public int size();
- // Inserts the specified element at the beginning of this list.
- public void addFirst(ELEMENT item);
- // Appends the specified element to the end of this list.
- public void addLast(ELEMENT item);
- // Removes and returns the first element from this list.
- public ELEMENT removeFirst();
- // Removes and returns the last element from this list.
- public ELEMENT removeLast();
- }
Add Comment
Please, Sign In to add comment