Create ListNode.java

master
wsy182 2024-07-09 22:45:55 +08:00
parent 97eb4196e9
commit d589c45e45
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
package com.nbee.solution.solution;
public class ListNode {
int val;
ListNode next;
ListNode() {
}
ListNode(int val) {
this.val = val;
}
ListNode(int val, ListNode next) {
this.val = val;
this.next = next;
}
}