Example #1
0
 public void insertLast(Vakje vakje)
 {
     Link newLink = new Link(vakje);
     if (isEmpty())
     {
         first = newLink;
     }
     else
     {
         last.next = newLink;
         newLink.previous = last;
     }
     last = newLink;
 }
Example #2
0
 public void insertFirst(Vakje vakje)
 {
     Link newLink = new Link(vakje);
     if (isEmpty())
     {
         last = newLink;
     }
     else
     {
         first.previous = newLink;
     }
     newLink.next = first;
     first = newLink;
 }
Example #3
0
 public LinkedList()
 {
     first = null;
     last = null;
 }
Example #4
0
 public LinkedList()
 {
     first = null;
     last = null;
     lengte = 0;
 }