// Tyler Mi // A ListNode represents an integer and the next ListNode public class ListNode { // Tyler: Remember that the classes you write won't have public fields! // This is for ease of use, and something we'll justify later in the course! public int data; public ListNode next; // Constructs an terminal ListNode with data 0 public ListNode() { this(0, null); } // Constructs an ending ListNode with the given data public ListNode(int data) { this(data, null); } // Constructs an ending ListNode with the given data // and the given following ListNode public ListNode(int data, ListNode next) { this.data = data; this.next = next; } }