Cabana_Mario_Ariel_F

TP4_ILinkedList

Oct 28th, 2020 (edited)
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment