Skip to content

Commit 17be791

Browse files
add an empty line after printing a linked list
1 parent 9bc71e3 commit 17be791

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/fishercoder/common/utils/LinkedListUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static void printList(ListNode head) {
2727
System.out.print(temp.val() + "\t");
2828
temp = temp.next;
2929
}
30+
System.out.println();
3031
}
3132

3233
public static ListNode createSinglyLinkedList(List<Integer> listValues) {

0 commit comments

Comments
 (0)