package java2019;
public class ListNode {
private int val;
private ListNode next;
public int getVal() {
return val;
}
public void setVal(int val) {
this.val = val;
}
public ListNode getNext() {
return next;
}
public void setNext(ListNode next) {
this.next = next;
}
public ListNode(int val, ListNode next) {
super();
this.val = val;
this.next = next;
}
public ListNode() {
super();
// TODO Auto-generated constructor stub
}
}