linkedList done for real

This commit is contained in:
Libkyy
2022-03-21 18:30:19 +02:00
parent 9f2908cd46
commit 76e906587c
2 changed files with 9 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ public class linkedlist
target.next = inserted;
inserted.prev = target;
tail = inserted;
size++;
}
public void addFirst(int value)
@@ -89,6 +90,7 @@ public class linkedlist
target.prev = inserted;
inserted.next = target;
head = inserted;
size++;
}