Formatted with Google Java Formatter

This commit is contained in:
github-actions
2020-10-24 10:31:42 +00:00
parent d27ded91a0
commit 0db62bb450
9 changed files with 12 additions and 14 deletions

View File

@ -61,12 +61,12 @@ public class SinglyLinkedList {
checkBounds(position, 0, size);
Node newNode = new Node(data);
if (head == null) {
/* the list is empty */
/* the list is empty */
head = newNode;
size++;
return;
} else if (position == 0) {
/* insert at the head of the list */
/* insert at the head of the list */
newNode.next = head;
head = newNode;
size++;