package oj.leetcode.list;

public class ListNode {
	
	public int val;
	public ListNode next = null;

	public ListNode(int val) {
		this.val = val;
		this.next = null;
	}
	
}

package oj.leetcode.list;

public class ListNode {
	
	public int val;
	public ListNode next = null;

	public ListNode(int val) {
		this.val = val;
		this.next = null;
	}
	
	public ListNode(int val, ListNode next) {
		this.val = val;
		this.next = next;
	}
	
}

define a new contructor with two parameters