update: Fixup

This commit is contained in:
Sobottasgithub
2026-01-16 08:05:36 +01:00
parent cc534d6485
commit 1b5ba23f00

View File

@@ -63,7 +63,7 @@ public class LinkedList {
if (search(prev)) {
toFirst();
while(current.getContent() != prev && hasAccess()) {
while(hasAccess() && current.getContent() != prev) {
toNext();
}
@@ -74,6 +74,8 @@ public class LinkedList {
current.setNextNode(newNode);
size++;
}
} else {
append(content);
}
}
@@ -93,8 +95,8 @@ public class LinkedList {
}
current = newCurrent;
pointer.setNextNode(current);
size--;
}
size--;
}
public void concat(LinkedList weaponList) {