Skip to content

Commit 5728b0f

Browse files
committed
update common ListNode
1 parent 86b5e2a commit 5728b0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/LeetCode/src/common/ListNode.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
public class ListNode {
44
public int val;
55
public ListNode next;
6-
public ListNode(int x) {
7-
val = x;
6+
public ListNode(int val) {
7+
this.val = val;
88
}
99

1010
static public ListNode listNodeWithIntArray(int[] input) {

0 commit comments

Comments
 (0)